Loading core/lib/Drupal/Core/Entity/EntityPublishedTrait.php +1 −2 Original line number Diff line number Diff line Loading @@ -45,8 +45,7 @@ public static function publishedBaseFieldDefinitions(EntityTypeInterface $entity * {@inheritdoc} */ public function isPublished() { $key = $this->getEntityType()->getKey('published'); return (bool) $this->get($key)->value; return (bool) $this->getEntityKey('published'); } /** Loading Loading
core/lib/Drupal/Core/Entity/EntityPublishedTrait.php +1 −2 Original line number Diff line number Diff line Loading @@ -45,8 +45,7 @@ public static function publishedBaseFieldDefinitions(EntityTypeInterface $entity * {@inheritdoc} */ public function isPublished() { $key = $this->getEntityType()->getKey('published'); return (bool) $this->get($key)->value; return (bool) $this->getEntityKey('published'); } /** Loading