diff --git a/core/modules/system/src/Plugin/views/field/BulkForm.php b/core/modules/system/src/Plugin/views/field/BulkForm.php index 5587ffa..f865b54 100644 --- a/core/modules/system/src/Plugin/views/field/BulkForm.php +++ b/core/modules/system/src/Plugin/views/field/BulkForm.php @@ -267,6 +267,11 @@ public function viewsFormSubmit(&$form, FormStateInterface $form_state) { foreach (array_intersect_key($this->view->result, $selected) as $row) { $entity = $this->getEntity($row); + // Get appropriate language translation of the entity for the row. + if (isset($this->aliases['langcode']) && $langcode = $this->getValue($row, 'langcode')) { + $entity = $entity->getTranslation($langcode); + } + // Skip execution if the user did not have access. if (!$action->getPlugin()->access($entity, $this->view->getUser())) { $this->drupalSetMessage($this->t('No access to execute %action on the @entity_type_label %entity_label.', [