function LinkItem::isEmpty
Overrides Map::isEmpty
File
-
core/
modules/ link/ src/ Plugin/ Field/ FieldType/ LinkItem.php, line 157
Class
- LinkItem
- Plugin implementation of the 'link' field type.
Namespace
Drupal\link\Plugin\Field\FieldTypeCode
public function isEmpty() {
$value = $this->get('uri')
->getValue();
return $value === NULL || $value === '';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.