• 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

Symfony there are no commands defined in the "make" namespace

How to convert time from one timezone to another in PHP

TesseractOCR not working for Laravel

What is PHP's equivalent of JavaScript's "array.every()"?

Clients authentication and user authentication with laravel

Fatal error: Uncaught mysqli_sql_exception: Unknown database 'test' in ... (How do I fix that? Using PHP)

How to Generate PDF invoice to XML format using mPDF

PHP my timezone is no setting up in PHP.ini File in xampp

PHP7 CLI attempts to load xdebug twice - "Cannot load Xdebug - it was already loaded"

How to change the app environment at run time?

laravel 5.6 bulk inserting json data

How to edit Records using CodeIgniter

XAMPP keeps showing Dashboard/Welcome Page instead of the Configuration Page

Elasticsearch - Want to sort by field in all indices where that particular field available or not if not then avoid it

phpmyadmin : Depends: php-twig (>= 2.9) but 2.6.2-2 is to be installed. WHAT?

About Contact Privacy policy Terms and conditions