Loading src/Form/ViewsBulkOperationsFormTrait.php +1 −4 Original line number Diff line number Diff line Loading @@ -144,8 +144,6 @@ trait ViewsBulkOperationsFormTrait { * The entity to calculate a bulk form key for. * @param mixed $base_field_value * The value of the base field for this view result. * @param mixed $row_index * Index of view result. * * @return string * The bulk form key representing the entity id, language and revision (if Loading @@ -153,7 +151,7 @@ trait ViewsBulkOperationsFormTrait { * * @see self::loadEntityFromBulkFormKey() */ public static function calculateEntityBulkFormKey(EntityInterface $entity, $base_field_value, $row_index): string { public static function calculateEntityBulkFormKey(EntityInterface $entity, $base_field_value): string { // We don't really need the entity ID or type ID, since only the // base field value and language are used to select rows, but // other modules may need those values. Loading @@ -162,7 +160,6 @@ trait ViewsBulkOperationsFormTrait { $entity->language()->getId(), $entity->getEntityTypeId(), $entity->id(), $row_index, ]; // An entity ID could be an arbitrary string (although they are typically Loading src/Plugin/views/field/ViewsBulkOperationsBulkForm.php +1 −2 Original line number Diff line number Diff line Loading @@ -645,8 +645,7 @@ class ViewsBulkOperationsBulkForm extends FieldPluginBase implements CacheableDe if ($entity = $this->getEntity($row)) { $bulk_form_keys[$row_index] = self::calculateEntityBulkFormKey( $entity, $row->{$base_field}, $row_index $row->{$base_field} ); $entity_labels[$row_index] = $entity->label(); } Loading Loading
src/Form/ViewsBulkOperationsFormTrait.php +1 −4 Original line number Diff line number Diff line Loading @@ -144,8 +144,6 @@ trait ViewsBulkOperationsFormTrait { * The entity to calculate a bulk form key for. * @param mixed $base_field_value * The value of the base field for this view result. * @param mixed $row_index * Index of view result. * * @return string * The bulk form key representing the entity id, language and revision (if Loading @@ -153,7 +151,7 @@ trait ViewsBulkOperationsFormTrait { * * @see self::loadEntityFromBulkFormKey() */ public static function calculateEntityBulkFormKey(EntityInterface $entity, $base_field_value, $row_index): string { public static function calculateEntityBulkFormKey(EntityInterface $entity, $base_field_value): string { // We don't really need the entity ID or type ID, since only the // base field value and language are used to select rows, but // other modules may need those values. Loading @@ -162,7 +160,6 @@ trait ViewsBulkOperationsFormTrait { $entity->language()->getId(), $entity->getEntityTypeId(), $entity->id(), $row_index, ]; // An entity ID could be an arbitrary string (although they are typically Loading
src/Plugin/views/field/ViewsBulkOperationsBulkForm.php +1 −2 Original line number Diff line number Diff line Loading @@ -645,8 +645,7 @@ class ViewsBulkOperationsBulkForm extends FieldPluginBase implements CacheableDe if ($entity = $this->getEntity($row)) { $bulk_form_keys[$row_index] = self::calculateEntityBulkFormKey( $entity, $row->{$base_field}, $row_index $row->{$base_field} ); $entity_labels[$row_index] = $entity->label(); } Loading