You are here

public function RemoteImageItem::isEmpty in Remote image 8

Determines whether the data structure is empty.

Return value

bool TRUE if the data structure is empty, FALSE otherwise.

Overrides LinkItem::isEmpty

File

src/Plugin/Field/FieldType/RemoteImageItem.php, line 225
Contains Drupal\remote_image\Plugin\Field\FieldType\RemoteImageField.

Class

RemoteImageItem
Plugin implementation of the 'remote_image' field type.

Namespace

Drupal\remote_image\Plugin\Field\FieldType

Code

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