Same name and namespace in other branches
  1. 3.0.x src/Plugin/Field/FieldFormatter/ColorFieldFormatterCss.php \Drupal\color_field\Plugin\Field\FieldFormatter\ColorFieldFormatterCss::__construct()

Constructs an ColorFieldFormatterCss object.

Paramètres

string $plugin_id: The plugin_id for the formatter.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The definition of the field to which the formatter is associated.

array $settings: The formatter settings.

string $label: The formatter label display setting.

string $view_mode: The view mode.

array $third_party_settings: Any third party settings.

\Drupal\Core\Utility\Token $token_service: The token service.

\Drupal\token\TokenEntityMapperInterface $token_entity_mapper: Optional token entity mapper service.

Fichier

src/Plugin/Field/FieldFormatter/ColorFieldFormatterCss.php, line 64

Classe

ColorFieldFormatterCss
Plugin implementation of the color_field css declaration formatter.

Namespace

Drupal\color_field\Plugin\Field\FieldFormatter

Code

public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, Token $token_service, $token_entity_mapper = NULL) {
    parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings);
    $this->tokenService = $token_service;
    $this->tokenEntityMapper = $token_entity_mapper;
}