public static function GridStackEntityFormatterBase::create in GridStack 8.2
Same name and namespace in other branches
- 8 src/Plugin/Field/FieldFormatter/GridStackEntityFormatterBase.php \Drupal\gridstack\Plugin\Field\FieldFormatter\GridStackEntityFormatterBase::create()
File
- src/
Plugin/ Field/ FieldFormatter/ GridStackEntityFormatterBase.php, line 23
Class
- GridStackEntityFormatterBase
- Base class for gridstack entity reference formatters without field details.
Namespace
Drupal\gridstack\Plugin\Field\FieldFormatterCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
$instance = parent::create($container, $configuration, $plugin_id, $plugin_definition);
return self::injectServices($instance, $container, 'entity');
}