public function YouTubeItem::isEmpty in YouTube Field 8
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/ YouTubeItem.php, line 67
Class
- YouTubeItem
- Plugin implementation of the 'youtube' field type.
Namespace
Drupal\youtube\Plugin\Field\FieldTypeCode
public function isEmpty() {
$value = $this
->get('input')
->getValue();
return $value === NULL || $value === '';
}