You are here

public function BulkUpdateFieldsActionBase::__construct in Bulk Update Fields 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Action/BulkUpdateFieldsActionBase.php \Drupal\bulk_update_fields\Plugin\Action\BulkUpdateFieldsActionBase::__construct()

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

\Drupal\Core\Session\SessionManagerInterface $session_manager: The session.

\Drupal\Core\Session\AccountInterface $current_user: The session.

Overrides PluginBase::__construct

File

src/Plugin/Action/BulkUpdateFieldsActionBase.php, line 88

Class

BulkUpdateFieldsActionBase
Update Fields.

Namespace

Drupal\bulk_update_fields\Plugin\Action

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, PrivateTempStoreFactory $temp_store_factory, SessionManagerInterface $session_manager, AccountInterface $current_user) {
  $this->configuration = $configuration;
  $this->pluginId = $plugin_id;
  $this->pluginDefinition = $plugin_definition;
  $this->tempStoreFactory = $temp_store_factory;
  $this->sessionManager = $session_manager;
  $this->currentUser = $current_user;
}