You are here

public function SetUnitState::execute in Booking and Availability Management Tools for Drupal 8

Executes the plugin.

Overrides ExecutableInterface::execute

File

modules/bat_unit/src/Plugin/Action/SetUnitState.php, line 92
Contains \Drupal\bat_unit\Plugin\Action\SetUnitState.

Class

SetUnitState
Assign fixed-state event to units.

Namespace

Drupal\bat_unit\Plugin\Action

Code

public function execute($entity = NULL) {
  $this
    ->executeMultiple([
    $entity,
  ]);
}