You are here

public static function SlickFileFormatterBase::create in Slick Carousel 8.2

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

File

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

Class

SlickFileFormatterBase
Base class for slick image and file ER formatters.

Namespace

Drupal\slick\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');
}