Call to undefined method addEntityTypeAndBundle

Created on 26 August 2022, over 2 years ago
Updated 22 March 2023, almost 2 years ago

Problem/Motivation

Running drupal-check I keep getting Call to an undefined method Drupal\workflows\WorkflowTypeInterface::addEntityTypeAndBundle() which is valid code and used in several locations.

Steps to reproduce

In a test case with

   $workflow = $this->createEditorialWorkflow();
    // @phpstan-ignore-next-line
    $workflow->getTypePlugin()->addEntityTypeAndBundle('node', 'page');
    $workflow->save();

Run phpstan

Proposed resolution

Ignore pattern

Remaining tasks

Write patch
Review
Commit

User interface changes

NA

API changes

NA

Data model changes

NA

Release notes snippet

NA

🐛 Bug report
Status

Needs review

Version

10.1

Component
Content moderation 

Last updated 24 days ago

Created by

🇺🇸United States smustgrave

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024