function UriItem::isEmpty
Overrides StringItemBase::isEmpty
File
-
core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ UriItem.php, line 68
Class
- UriItem
- Defines the 'uri' entity field type.
Namespace
Drupal\Core\Field\Plugin\Field\FieldTypeCode
public function isEmpty() {
$value = $this->getValue();
if (!isset($value['value']) || $value['value'] === '') {
return TRUE;
}
return parent::isEmpty();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.