public static function GridStackViews::create in GridStack 8.2
Same name and namespace in other branches
- 8 src/Plugin/views/style/GridStackViews.php \Drupal\gridstack\Plugin\views\style\GridStackViews::create()
File
- src/
Plugin/ views/ style/ GridStackViews.php, line 26
Class
- GridStackViews
- GridStack style plugin.
Namespace
Drupal\gridstack\Plugin\views\styleCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
$instance = parent::create($container, $configuration, $plugin_id, $plugin_definition);
$instance->manager = $container
->get('gridstack.manager');
$instance->blazyManager = isset($instance->blazyManager) ? $instance->blazyManager : $container
->get('blazy.manager');
return $instance;
}