function DeleteAction::create

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Action/Plugin/Action/DeleteAction.php \Drupal\Core\Action\Plugin\Action\DeleteAction::create()
  2. 10 core/lib/Drupal/Core/Action/Plugin/Action/DeleteAction.php \Drupal\Core\Action\Plugin\Action\DeleteAction::create()
  3. 11.x core/lib/Drupal/Core/Action/Plugin/Action/DeleteAction.php \Drupal\Core\Action\Plugin\Action\DeleteAction::create()

Overrides EntityActionBase::create

File

core/lib/Drupal/Core/Action/Plugin/Action/DeleteAction.php, line 61

Class

DeleteAction
Redirects to an entity deletion form.

Namespace

Drupal\Core\Action\Plugin\Action

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    return new static($configuration, $plugin_id, $plugin_definition, $container->get('entity_type.manager'), $container->get('tempstore.private'), $container->get('current_user'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.