You are here

public function WebformEntityReferenceLinkFormatter::__construct in Webform 8.5

WebformEntityReferenceLinkFormatter constructor.

Parameters

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: Third party settings.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\webform\WebformMessageManagerInterface $message_manager: The webform message manager.

\Drupal\webform\WebformTokenManagerInterface $token_manager: The webform token manager.

Overrides WebformEntityReferenceFormatterBase::__construct

File

src/Plugin/Field/FieldFormatter/WebformEntityReferenceLinkFormatter.php, line 78

Class

WebformEntityReferenceLinkFormatter
Plugin implementation of the 'Link to webform' formatter.

Namespace

Drupal\webform\Plugin\Field\FieldFormatter

Code

public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, RendererInterface $renderer, ConfigFactoryInterface $config_factory, WebformMessageManagerInterface $message_manager, WebformTokenManagerInterface $token_manager) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings, $renderer, $config_factory);
  $this->messageManager = $message_manager;
  $this->tokenManager = $token_manager;
}