function TelephoneItem::isEmpty
Same name in other branches
- 9 core/modules/telephone/src/Plugin/Field/FieldType/TelephoneItem.php \Drupal\telephone\Plugin\Field\FieldType\TelephoneItem::isEmpty()
- 10 core/modules/telephone/src/Plugin/Field/FieldType/TelephoneItem.php \Drupal\telephone\Plugin\Field\FieldType\TelephoneItem::isEmpty()
- 11.x core/modules/telephone/src/Plugin/Field/FieldType/TelephoneItem.php \Drupal\telephone\Plugin\Field\FieldType\TelephoneItem::isEmpty()
Overrides Map::isEmpty
File
-
core/
modules/ telephone/ src/ Plugin/ Field/ FieldType/ TelephoneItem.php, line 52
Class
- TelephoneItem
- Plugin implementation of the 'telephone' field type.
Namespace
Drupal\telephone\Plugin\Field\FieldTypeCode
public function isEmpty() {
$value = $this->get('value')
->getValue();
return $value === NULL || $value === '';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.