You are here

public function SimpleIframeFieldType::isEmpty in Simple iframe 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/SimpleIframeFieldType.php, line 125

Class

SimpleIframeFieldType
Plugin implementation of the 'simple_iframe_field_type' field type.

Namespace

Drupal\simple_iframe\Plugin\Field\FieldType

Code

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