public function ExportAction::__construct in Content Synchronizer 3.x
Same name and namespace in other branches
- 8.2 src/Plugin/Action/ExportAction.php \Drupal\content_synchronizer\Plugin\Action\ExportAction::__construct()
- 8 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 48
Class
- ExportAction
- Export entity.
Namespace
Drupal\content_synchronizer\Plugin\ActionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, PrivateTempStoreFactory $temp_store_factory = NULL, AccountInterface $current_user = NULL, ExportManager $exportManager) {
$this->currentUser = $current_user;
$this->tempStore = $temp_store_factory
->get(ExportConfirmForm::FORM_ID);
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->exportManager = $exportManager;
}