You are here

public function EntityLegalDocumentVersion::isPublished in Entity Legal 3.0.x

Same name and namespace in other branches
  1. 8.2 src/Entity/EntityLegalDocumentVersion.php \Drupal\entity_legal\Entity\EntityLegalDocumentVersion::isPublished()
  2. 4.0.x src/Entity/EntityLegalDocumentVersion.php \Drupal\entity_legal\Entity\EntityLegalDocumentVersion::isPublished()

Checks if this version is the legal document published version.

Return value

bool If this the legal document published version.

Overrides EntityLegalDocumentVersionInterface::isPublished

File

src/Entity/EntityLegalDocumentVersion.php, line 216

Class

EntityLegalDocumentVersion
Defines the entity legal document version entity.

Namespace

Drupal\entity_legal\Entity

Code

public function isPublished() {
  return (bool) $this
    ->get('published')->value;
}