You are here

public static function EntityActionBase::create in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Action/Plugin/Action/EntityActionBase.php \Drupal\Core\Action\Plugin\Action\EntityActionBase::create()
  2. 9 core/lib/Drupal/Core/Action/Plugin/Action/EntityActionBase.php \Drupal\Core\Action\Plugin\Action\EntityActionBase::create()

File

core/lib/Drupal/Core/Action/Plugin/Action/EntityActionBase.php, line 43

Class

EntityActionBase
Base class for entity-based actions.

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'));
}