You are here

public function SendContextAction::__construct in TMGMT Translator Smartling 8.2

Same name and namespace in other branches
  1. 8.4 src/Plugin/Action/SendContextAction.php \Drupal\tmgmt_smartling\Plugin\Action\SendContextAction::__construct()
  2. 8 src/Plugin/Action/SendContextAction.php \Drupal\tmgmt_smartling\Plugin\Action\SendContextAction::__construct()
  3. 8.3 src/Plugin/Action/SendContextAction.php \Drupal\tmgmt_smartling\Plugin\Action\SendContextAction::__construct()

Creates TranslateNode action.

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\user\PrivateTempStoreFactory $temp_store_factory: The tempstore factory.

\Drupal\Core\Session\AccountInterface $current_user: Current user.

Overrides PluginBase::__construct

File

src/Plugin/Action/SendContextAction.php, line 64
Contains \Drupal\smartling\Plugin\Action\TranslateNode.

Class

SendContextAction
Translate entity.

Namespace

Drupal\tmgmt_smartling\Plugin\Action

Code

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