You are here

public function ExportAction::__construct in Content Synchronizer 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Action/ExportAction.php \Drupal\content_synchronizer\Plugin\Action\ExportAction::__construct()
  2. 3.x src/Plugin/Action/ExportAction.php \Drupal\content_synchronizer\Plugin\Action\ExportAction::__construct()

Constructs a \Drupal\Component\Plugin\PluginBase 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.

Overrides PluginBase::__construct

File

src/Plugin/Action/ExportAction.php, line 49

Class

ExportAction
Export entity.

Namespace

Drupal\content_synchronizer\Plugin\Action

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, PrivateTempStoreFactory $temp_store_factory = NULL, AccountInterface $current_user = NULL) {
  $this->currentUser = $current_user;
  $this->tempStore = $temp_store_factory
    ->get(ExportConfirmForm::FORM_ID);
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->exportManager = \Drupal::service(ExportManager::SERVICE_NAME);
}