function Block::create
Same name in other branches
- 4.0.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 39
Class
- Block
- Provides a Block display plugin.
Namespace
Drupal\ctools_views\Plugin\DisplayCode
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;
}