You are here

class GroupContentEntityDeleteAction in Open Social 8.8

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_group/src/Plugin/Action/GroupContentEntityDeleteAction.php \Drupal\social_group\Plugin\Action\GroupContentEntityDeleteAction
  2. 8.5 modules/social_features/social_group/src/Plugin/Action/GroupContentEntityDeleteAction.php \Drupal\social_group\Plugin\Action\GroupContentEntityDeleteAction
  3. 8.6 modules/social_features/social_group/src/Plugin/Action/GroupContentEntityDeleteAction.php \Drupal\social_group\Plugin\Action\GroupContentEntityDeleteAction
  4. 8.7 modules/social_features/social_group/src/Plugin/Action/GroupContentEntityDeleteAction.php \Drupal\social_group\Plugin\Action\GroupContentEntityDeleteAction
  5. 10.3.x modules/social_features/social_group/src/Plugin/Action/GroupContentEntityDeleteAction.php \Drupal\social_group\Plugin\Action\GroupContentEntityDeleteAction
  6. 10.0.x modules/social_features/social_group/src/Plugin/Action/GroupContentEntityDeleteAction.php \Drupal\social_group\Plugin\Action\GroupContentEntityDeleteAction
  7. 10.1.x modules/social_features/social_group/src/Plugin/Action/GroupContentEntityDeleteAction.php \Drupal\social_group\Plugin\Action\GroupContentEntityDeleteAction
  8. 10.2.x modules/social_features/social_group/src/Plugin/Action/GroupContentEntityDeleteAction.php \Drupal\social_group\Plugin\Action\GroupContentEntityDeleteAction

Delete group content entity action without default confirmation form.

Plugin annotation


@Action(
  id = "social_group_delete_group_content_action",
  label = @Translation("Delete selected group content entities"),
  type = "group_content",
  confirm = TRUE,
)

Hierarchy

Expanded class hierarchy of GroupContentEntityDeleteAction

File

modules/social_features/social_group/src/Plugin/Action/GroupContentEntityDeleteAction.php, line 17

Namespace

Drupal\social_group\Plugin\Action
View source
class GroupContentEntityDeleteAction extends EntityDeleteAction {

  /**
   * {@inheritdoc}
   */
  public function execute($entity = NULL) {
    parent::execute($entity);
    return $this
      ->t('Remove members from a group');
  }

}

Members