• 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

Get number of working days between two dates in PHP [duplicate]

How to connect to MSSQL Server with PHP from Ubuntu 18.04?

PDOException: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: no such host known

How to upload mpdf file after generating to s3 bucket in php

How to Make Laravel Eloquent "IN" Query?

MOODLE: What does it mean to aggregate h5p assets?

Multiply each value in array using array_map function

Call to undefined function openssl_decrypt

How to properly start Laravel 8 with Bootstrap & authentication

PHP if in_array() how to get the key as well?

Yoast SEO (WordPress Plugin) - Get plugin generated data manually

How should I get started using PHPUnit as a testing framework for a bunch of functions and classes I have already made?

Magento 2 - Controller returning blank page

How to get values inside <![CDATA[values]] > using php DOM?

Getting values for an enum?

About Contact Privacy policy Terms and conditions