public function MenuItemId::isEmpty in Field Menu 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/ MenuItemId.php, line 59
Class
- MenuItemId
- Plugin implementation of the 'field_menu' field type.
Namespace
Drupal\field_menu\Plugin\Field\FieldTypeCode
public function isEmpty() {
$value = $this
->get('menu_item_key')
->getValue();
return $value === NULL || $value === '';
}