public function EntityBlockItem::isEmpty in Entityblock 8
Determines whether the data structure is empty.
Return value
bool TRUE if the data structure is empty, FALSE otherwise.
Overrides Map::isEmpty
File
- src/
Plugin/ Field/ FieldType/ EntityBlockItem.php, line 84 - Contains \Drupal\entityblock\Plugin\Field\FieldType\EntityBlockItem.
Class
- EntityBlockItem
- Plugin implementation of the 'EntityBlock' field type.
Namespace
Drupal\entityblock\Plugin\Field\FieldTypeCode
public function isEmpty() {
return !$this->enabled && !$this->title;
}