public function RelationEndpointItem::isEmpty in Relation 8
Determines whether the data structure is empty.
Return value
bool TRUE if the data structure is empty, FALSE otherwise.
Overrides Map::isEmpty
File
- relation_endpoint/
src/ Plugin/ Field/ FieldType/ RelationEndpointItem.php, line 83 - Contains \Drupal\relation_endpoint\Plugin\Field\FieldType\RelationEndpointItem.
Class
- RelationEndpointItem
- Plugin implementation of the 'relation_endpoint' field type.
Namespace
Drupal\relation_endpoint\Plugin\Field\FieldTypeCode
public function isEmpty() {
$value = $this
->get('entity_id')
->getValue();
return $value === NULL || $value === '';
}