protected function PublicationDateItem::isPublished in Publication Date 8.2
Same name and namespace in other branches
- 8 src/Plugin/Field/FieldType/PublicationDateItem.php \Drupal\publication_date\Plugin\Field\FieldType\PublicationDateItem::isPublished()
1 call to PublicationDateItem::isPublished()
- PublicationDateItem::preSave in src/
Plugin/ Field/ FieldType/ PublicationDateItem.php - Defines custom presave behavior for field values.
File
- src/
Plugin/ Field/ FieldType/ PublicationDateItem.php, line 80 - Contains \Drupal\publication_date\Plugin\Field\FieldType\PublicationDateItem.
Class
- PublicationDateItem
- Defines the 'published_at' entity field type.
Namespace
Drupal\publication_date\Plugin\Field\FieldTypeCode
protected function isPublished() {
$entity = $this
->getEntity();
return $entity instanceof EntityPublishedInterface ? $entity
->isPublished() : FALSE;
}