You are here

public function SkypeButtonFormatter::__construct in Skype 8

SkypeButtonFormatter constructor.

Parameters

string $plugin_id:

mixed $plugin_definition:

\Drupal\Core\Field\FieldDefinitionInterface $field_definition:

array $settings:

string $label:

string $view_mode:

array $third_party_settings:

Overrides FormatterBase::__construct

File

src/Plugin/Field/FieldFormatter/SkypeButtonFormatter.php, line 36

Class

SkypeButtonFormatter
Plugin implementation of the 'skype_button' formatter.

Namespace

Drupal\skype\Plugin\Field\FieldFormatter

Code

public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings);

  /** @var \Symfony\Component\HttpFoundation\RequestStack $request_stack */
  $request_stack = \Drupal::requestStack();
  $this->request = $request_stack
    ->getCurrentRequest();
}