public static function SlickViewsBase::create in Slick Views 8.2
File
- src/
Plugin/ views/ style/ SlickViewsBase.php, line 24
Class
- SlickViewsBase
- The base class common for Slick style plugins.
Namespace
Drupal\slick_views\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('slick.manager');
$instance->blazyManager = isset($instance->blazyManager) ? $instance->blazyManager : $container
->get('blazy.manager');
return $instance;
}