When Views bulk form is submitted selected entities are passed to Action's execute() method. But since entities are in form of a list the proper method to be called on the action is executeMultiple().

See /core\modules\system\lib\Drupal\system\Plugin\views\field\BulkForm.php:262

CommentFileSizeAuthor
#1 views.module-2239249-1.patch700 bytescs_shadow

Comments

cs_shadow’s picture

Status: Active » Needs review
StatusFileSize
new700 bytes

Attaching a patch that replaces the call to execute() by a call to executeMultiple().

tim.plunkett’s picture

I'm betting that will fail.

That should be the Action *entity*, not the Action *plugin*.
\Drupal\system\Entity\Action has this method:

  public function execute(array $entities) {
    return $this->getPlugin()->executeMultiple($entities);
  }
Anonymous’s picture

Yeah, you're right. Since in this case actions are entities and not plugins.

Anonymous’s picture

Status: Needs review » Closed (works as designed)

meh

Status: Closed (works as designed) » Needs work

The last submitted patch, 1: views.module-2239249-1.patch, failed testing.

tim.plunkett’s picture

Status: Needs work » Closed (works as designed)