You are here

public static function GridStackFileFormatterBase::create in GridStack 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldFormatter/GridStackFileFormatterBase.php \Drupal\gridstack\Plugin\Field\FieldFormatter\GridStackFileFormatterBase::create()
1 call to GridStackFileFormatterBase::create()
GridStackFileFormatter::create in src/Plugin/Field/FieldFormatter/GridStackFileFormatter.php
1 method overrides GridStackFileFormatterBase::create()
GridStackFileFormatter::create in src/Plugin/Field/FieldFormatter/GridStackFileFormatter.php

File

src/Plugin/Field/FieldFormatter/GridStackFileFormatterBase.php, line 22

Class

GridStackFileFormatterBase
Base class for gridstack image and file ER formatters.

Namespace

Drupal\gridstack\Plugin\Field\FieldFormatter

Code

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, 'image');
}