You are here

public function EventEnrollmentEntityDeleteAction::execute in Open Social 10.3.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_event/modules/social_event_managers/src/Plugin/Action/EventEnrollmentEntityDeleteAction.php \Drupal\social_event_managers\Plugin\Action\EventEnrollmentEntityDeleteAction::execute()
  2. 8.5 modules/social_features/social_event/modules/social_event_managers/src/Plugin/Action/EventEnrollmentEntityDeleteAction.php \Drupal\social_event_managers\Plugin\Action\EventEnrollmentEntityDeleteAction::execute()
  3. 8.6 modules/social_features/social_event/modules/social_event_managers/src/Plugin/Action/EventEnrollmentEntityDeleteAction.php \Drupal\social_event_managers\Plugin\Action\EventEnrollmentEntityDeleteAction::execute()
  4. 8.7 modules/social_features/social_event/modules/social_event_managers/src/Plugin/Action/EventEnrollmentEntityDeleteAction.php \Drupal\social_event_managers\Plugin\Action\EventEnrollmentEntityDeleteAction::execute()
  5. 8.8 modules/social_features/social_event/modules/social_event_managers/src/Plugin/Action/EventEnrollmentEntityDeleteAction.php \Drupal\social_event_managers\Plugin\Action\EventEnrollmentEntityDeleteAction::execute()
  6. 10.0.x modules/social_features/social_event/modules/social_event_managers/src/Plugin/Action/EventEnrollmentEntityDeleteAction.php \Drupal\social_event_managers\Plugin\Action\EventEnrollmentEntityDeleteAction::execute()
  7. 10.1.x modules/social_features/social_event/modules/social_event_managers/src/Plugin/Action/EventEnrollmentEntityDeleteAction.php \Drupal\social_event_managers\Plugin\Action\EventEnrollmentEntityDeleteAction::execute()
  8. 10.2.x modules/social_features/social_event/modules/social_event_managers/src/Plugin/Action/EventEnrollmentEntityDeleteAction.php \Drupal\social_event_managers\Plugin\Action\EventEnrollmentEntityDeleteAction::execute()

Executes the plugin.

Overrides ExecutableInterface::execute

File

modules/social_features/social_event/modules/social_event_managers/src/Plugin/Action/EventEnrollmentEntityDeleteAction.php, line 27

Class

EventEnrollmentEntityDeleteAction
Delete event enrollment entity action.

Namespace

Drupal\social_event_managers\Plugin\Action

Code

public function execute($entity = NULL) {

  /** @var \Drupal\social_event\EventEnrollmentInterface $entity */
  $entity
    ->delete();
}