You are here

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\FieldType

Code

public function isEmpty() {
  $value = $this
    ->get('input')
    ->getValue();
  return $value === NULL || $value === '';
}