• 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

HTTP Range requests with php for Video Embedding for solving going to specific time in video (seek bar not work)

Toggle between a textbox and a select using PHP

Symfony/Form add attribute based on the data

PHP echo values of all sub keys [duplicate]

Laravel Get Days In Month From Month Number?

Adding one microsecond to Datetime object in PHP

SMTP "Error: DATA not accepted from server!" Opencart 2.3 on InMotionHosting

Reading input in php from terminal

Sliders in Laravel

The difference when using if statement true === something() vs something() === true [duplicate]

Get latest Tweets - What API

Detect if PHP session exists

Printing more than one array using print_r or any other function in php

PHP -> Next nearest date defined by array of days in week

Find out the name of the last script that included the current one

About Contact Privacy policy Terms and conditions