Same name and namespace in other branches
- 3.0.x src/Plugin/Field/FieldFormatter/ColorFieldFormatterCss.php \Drupal\color_field\Plugin\Field\FieldFormatter\ColorFieldFormatterCss::create()
Fichier
-
src/
Plugin/ Field/ FieldFormatter/ ColorFieldFormatterCss.php, line 73
Classe
- ColorFieldFormatterCss
- Plugin implementation of the color_field css declaration formatter.
Namespace
Drupal\color_field\Plugin\Field\FieldFormatterCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
// @see \Drupal\Core\Field\FormatterPluginManager::createInstance().
return new static($plugin_id, $plugin_definition, $configuration['field_definition'], $configuration['settings'], $configuration['label'], $configuration['view_mode'], $configuration['third_party_settings'], $container->get('token'), $container->has('token.entity_mapper') ? $container->get('token.entity_mapper') : NULL);
}