You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->getEntityKey('status') does not seem to return a value for a content entity (no bundle) with status = 1. As a test, I swapped it with $this->get('status')->value and then isPublished() worked fine.
public function isPublished() {
return (bool) $this->getEntityKey('status');
}
The text was updated successfully, but these errors were encountered:
$this->getEntityKey('status')
does not seem to return a value for a content entity (no bundle) withstatus = 1
. As a test, I swapped it with$this->get('status')->value
and thenisPublished()
worked fine.The text was updated successfully, but these errors were encountered: