diff -u b/core/modules/views/src/Plugin/views/field/BulkForm.php b/core/modules/views/src/Plugin/views/field/BulkForm.php --- b/core/modules/views/src/Plugin/views/field/BulkForm.php +++ b/core/modules/views/src/Plugin/views/field/BulkForm.php @@ -91,11 +91,14 @@ * The messenger. * @param \Drupal\Core\Entity\EntityRepositoryInterface $entity_repository * The entity repository. + * @param \Drupal\Core\Action\ActionManager $action_manager + * The action manager. * * @throws \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException + * * @todo deprecate calling without an action manager. */ - public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, LanguageManagerInterface $language_manager, MessengerInterface $messenger, EntityRepositoryInterface $entity_repository, ActionManager $action_manager) { + public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, LanguageManagerInterface $language_manager, MessengerInterface $messenger, EntityRepositoryInterface $entity_repository, ActionManager $action_manager = NULL) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->entityTypeManager = $entity_type_manager; @@ -417,7 +420,7 @@ $action->executeMultiple($entities); - if (!empty($action->getPluginDefinition()['confirm_form_route_name'])) { + if (!empty($action->getPluginDefinition()['confirm_form_route_name'])) { $options = [ 'query' => $this->getDestinationArray(), ]; diff -u b/core/modules/views/views.views.inc b/core/modules/views/views.views.inc --- b/core/modules/views/views.views.inc +++ b/core/modules/views/views.views.inc @@ -13,7 +13,6 @@ use Drupal\field\Entity\FieldConfig; use Drupal\field\FieldConfigInterface; use Drupal\field\FieldStorageConfigInterface; -use Drupal\system\ActionConfigEntityInterface; /** * Implements hook_views_data().