public function SetUnitState::__construct in Booking and Availability Management Tools for Drupal 8
Constructs a new SetUnitState 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\Core\TempStore\PrivateTempStoreFactory $temp_store_factory: The tempstore factory.
\Drupal\Core\Session\AccountInterface $current_user: Current user.
Overrides PluginBase::__construct
File
- modules/
bat_unit/ src/ Plugin/ Action/ SetUnitState.php, line 56 - Contains \Drupal\bat_unit\Plugin\Action\SetUnitState.
Class
- SetUnitState
- Assign fixed-state event to units.
Namespace
Drupal\bat_unit\Plugin\ActionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, PrivateTempStoreFactory $temp_store_factory, AccountInterface $current_user) {
$this->currentUser = $current_user;
$this->tempStore = $temp_store_factory
->get('unit_set_state_action_form');
parent::__construct($configuration, $plugin_id, $plugin_definition);
}