function EntityPublishedTrait::isPublished
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityPublishedTrait.php \Drupal\Core\Entity\EntityPublishedTrait::isPublished()
- 8.9.x core/lib/Drupal/Core/Entity/EntityPublishedTrait.php \Drupal\Core\Entity\EntityPublishedTrait::isPublished()
- 11.x core/lib/Drupal/Core/Entity/EntityPublishedTrait.php \Drupal\Core\Entity\EntityPublishedTrait::isPublished()
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityPublishedTrait.php, line 47
Class
- EntityPublishedTrait
- Provides a trait for published status.
Namespace
Drupal\Core\EntityCode
public function isPublished() {
return (bool) $this->getEntityKey('published');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.