public function EntityLegalDocumentVersion::isPublished in Entity Legal 3.0.x
Same name and namespace in other branches
- 8.2 src/Entity/EntityLegalDocumentVersion.php \Drupal\entity_legal\Entity\EntityLegalDocumentVersion::isPublished()
- 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\EntityCode
public function isPublished() {
return (bool) $this
->get('published')->value;
}