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.

Command icon 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

drupatz created an issue. See original summary.

drupatz’s picture

Issue summary: View changes
drupatz’s picture

Issue summary: View changes

drupatz’s picture

Status: Active » Needs review
hydra’s picture

Status: Needs review » Reviewed & tested by the community

Makes sense to me, "finishCallback" is not on the object, this currently throws an error on every entity_type change

cedricl’s picture

Version: 2.1.x-dev » 2.1.9
Status: Reviewed & tested by the community » Fixed

Thanks for the work. Changes are in the new release

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.