X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FEntity%2FEntityPublishedTrait.php;h=1f36625828e53c308f464ea39725609246744c42;hb=5b8bb166bfa98770daef9de5c127fc2e6ef02340;hp=eb4d82e89b8eee87af38c0b3967c3030448b3ed8;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php b/web/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php index eb4d82e89..1f3662582 100644 --- a/web/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php +++ b/web/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php @@ -45,8 +45,7 @@ trait EntityPublishedTrait { * {@inheritdoc} */ public function isPublished() { - $key = $this->getEntityType()->getKey('published'); - return (bool) $this->get($key)->value; + return (bool) $this->getEntityKey('published'); } /**