public function IframeItem::isEmpty in Iframe 8
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldType/IframeItem.php \Drupal\iframe\Plugin\Field\FieldType\IframeItem::isEmpty()
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/ IframeItem.php, line 279
Class
- IframeItem
- Plugin implementation of the 'Iframe' field type.
Namespace
Drupal\iframe\Plugin\Field\FieldTypeCode
public function isEmpty() {
$value = $this
->get('url')
->getValue();
return $value === NULL || $value === '';
}