You are here

public function EditTab::__construct in Workbench Moderation 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Menu/EditTab.php \Drupal\workbench_moderation\Plugin\Menu\EditTab::__construct()

Constructs a new EditTab object.

Parameters

array $configuration: Plugin configuration.

string $plugin_id: Plugin ID.

mixed $plugin_definition: Plugin definition.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The translation service.

\Drupal\workbench_moderation\ModerationInformation $moderation_information: The moderation information.

Overrides PluginBase::__construct

File

src/Plugin/Menu/EditTab.php, line 49

Class

EditTab
Defines a class for making the edit tab use 'Edit draft' or 'New draft'.

Namespace

Drupal\workbench_moderation\Plugin\Menu

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, TranslationInterface $string_translation, ModerationInformation $moderation_information) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->stringTranslation = $string_translation;
  $this->moderationInfo = $moderation_information;
}