You are here

public function LogActionBase::__construct in Log entity 2.x

Constructs a LogActionBase object.

Parameters

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

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

array $plugin_definition: The plugin implementation definition.

\Drupal\Core\TempStore\PrivateTempStore $temp_store: The tempstore factory.

\Drupal\Core\Session\AccountInterface $user: The current user.

Overrides PluginBase::__construct

File

src/Plugin/Action/LogActionBase.php, line 45

Class

LogActionBase
Base class for the configurable actions for logs.

Namespace

Drupal\log\Plugin\Action

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, PrivateTempStore $temp_store, AccountInterface $user) {
  $this->tempStore = $temp_store;
  $this->user = $user;
  parent::__construct($configuration, $plugin_id, $plugin_definition);
}