public function PublicationDateItem::isEmpty in Publication Date 8
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldType/PublicationDateItem.php \Drupal\publication_date\Plugin\Field\FieldType\PublicationDateItem::isEmpty()
@inheritDoc
Overrides Map::isEmpty
File
- src/
Plugin/ Field/ FieldType/ PublicationDateItem.php, line 86 - Contains \Drupal\publication_date\Plugin\Field\FieldType\PublicationDateItem.
Class
- PublicationDateItem
- Defines the 'published_at' entity field type.
Namespace
Drupal\publication_date\Plugin\Field\FieldTypeCode
public function isEmpty() {
if (isset($this->value) || isset($this->published_at_or_now)) {
return FALSE;
}
return TRUE;
}