Call to undefined method Drupal\user\Entity\User::isPublished()

Created on 31 October 2023, about 1 year ago
Updated 14 June 2024, 5 months ago

Steps to reproduce

On a views with an autocomplete filter for the content author when trying to search by a user name we get the following error:
Error: Call to undefined method Drupal\user\Entity\User::isPublished() in Drupal\entity_autocomplete_suggestions\EntityAutocompleteSuggestionsMatcher->getMatches() (line 126 of modules/contrib/entity_autocomplete_suggestions/src/EntityAutocompleteSuggestionsMatcher.php).

Proposed resolution

Check EntityPublishedInterface before calling isPublished()

🐛 Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

🇬🇧United Kingdom Alina Basarabeanu

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

Comments & Activities

Production build 0.71.5 2024