You are here

public function AssignTask::__construct in Translation Management Tool 8

Constructs a new AssignTask object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin ID for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory: The tempstore factory.

AccountInterface $current_user: Current user.

Overrides PluginBase::__construct

File

translators/tmgmt_local/src/Plugin/Action/AssignTask.php, line 52

Class

AssignTask
Redirects to a task assign form.

Namespace

Drupal\tmgmt_local\Plugin\Action

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, PrivateTempStoreFactory $temp_store_factory, AccountInterface $current_user) {
  $this->currentUser = $current_user;
  $this->tempStore = $temp_store_factory
    ->get('task_multiple_assign');
  parent::__construct($configuration, $plugin_id, $plugin_definition);
}