• 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

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null

Respond with status code 401 on authentication failure using Laravel and Passport?

Telegram bot doesn't answer

Reading input in php from terminal

Can't find vendor/autoload.php for Ratchet

file_get_contents() without "Http" to access external URL [closed]

Creating live search with AJAX and CodeIgniter

php echo xml documents with header

dockerizing Laravel + vue

Laravel views are showing from cache on one server but works fine on other server

how to retrieve the first and last instance of a row in pdo dataset

Converting alphabet letter to alphabet position in PHP [duplicate]

How to convert binary string to normal string in php

Declaration of OMDb::query(string $statement) must be compatible with PDO::query

protect images from being copied

About Contact Privacy policy Terms and conditions