• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Store / Website Column in Magento 2 Admin Grid - Custom Module

phpmysqlmagento2


PHP Snippet 1:

 /**
 * Check is single store mode
 */
 if (!$this->_storeManager->isSingleStoreMode()) {
    $this->addColumn(
        'store_id',
         [
             'header' => __('Store View'),
             'index' => 'store_id',
             'type' => 'store',
             'store_all' => true,
             'store_view' => true,
             'sortable' => false,
             'filter_condition_callback' => [$this, '_filterStoreCondition']
            ]
        );
    }

Related Snippets

How to test laravel controller method?

Python - Include another Python script

Transpose multidimensional array and join values with commas

Laravel 5.1 xmlHttpRequest AJAX POST TokenMismatchException

printing all running session variable in laravel 5.1

Laravel PackageManifest.php: Undefined index: name

Auto increment id JSON

Laravel 5 session not persisting after user is logged in

Laravel-fopen: failed to open stream: Permission denied

PHP Startup: Unable to load dynamic library 'openssl' in Ubuntu

How To Access A Column In M-M Relationship Table In Laravel

Add bold text and line break into Laravel Notification Email

How to get company posts from LinkedIn via API?

How to remove index.php and index from the URL using htaccess | PHP

How to average columns of data from multiple, flat arrays?

About Contact Privacy policy Terms and conditions