Problem/Motivation
In EntityTypeBehaviorStorageBatchHandler::generateBatch there is following returned:
return [
'title' => $this->t('Starting behavior storage field update'),
'operations' => $operations,
'finished' => [$this, 'finishCallback'],
];
The given array for 'finished' causes following Error (with Drupal ^11.3), when saving e.g. a content type like the one under admin/structure/types/manage/page:
Error: Object of class Drupal\entity_type_behaviors\Batch\EntityTypeBehaviorStorageBatchHandler could not be converted to string in implode() (line 69 of /var/www/html/web/core/lib/Drupal/Core/Utility/CallableResolver.php).
This part, anyways, is strange, as the function 'finishCallback' doesn't exist.
Proposed resolution
As 'finishCallback' doesn't exist, i assume, it's not needed. Therefore just remove it, until there is an idea/concept for the need of this callback.
Issue fork entity_type_behaviors-3571495
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
drupatz commentedComment #3
drupatz commentedComment #5
drupatz commentedComment #6
hydra commentedMakes sense to me, "finishCallback" is not on the object, this currently throws an error on every entity_type change
Comment #7
cedricl commentedThanks for the work. Changes are in the new release