You are here

public function SoundCloudItem::isEmpty in SoundCloud 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/SoundCloudItem.php, line 65

Class

SoundCloudItem
Plugin implementation of the 'soundcloud' field type.

Namespace

Drupal\soundcloudfield\Plugin\Field\FieldType

Code

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