public static function GridStackFileFormatter::create in GridStack 8.2
Overrides GridStackFileFormatterBase::create
File
- src/
Plugin/ Field/ FieldFormatter/ GridStackFileFormatter.php, line 18
Class
- GridStackFileFormatter
- Plugin implementation of the 'GridStack' formatter to get ME within images.
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');
}