function TelephoneItem::isEmpty
Overrides Map::isEmpty
File
-
core/
modules/ telephone/ src/ Plugin/ Field/ FieldType/ TelephoneItem.php, line 58
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.