function Block::create

Same name in other branches
  1. 8.x-3.x modules/ctools_views/src/Plugin/Display/Block.php \Drupal\ctools_views\Plugin\Display\Block::create()

Overrides Block::create

File

modules/ctools_views/src/Plugin/Display/Block.php, line 34

Class

Block
Provides a Block display plugin.

Namespace

Drupal\ctools_views\Plugin\Display

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    
    /**
     * @var \Drupal\ctools_views\Plugin\Display\Block
     */
    $instance = parent::create($container, $configuration, $plugin_id, $plugin_definition);
    $instance->filterManager = $container->get('plugin.manager.views.filter');
    $instance->request = $container->get('request_stack')
        ->getCurrentRequest();
    return $instance;
}