You are here

public function DummyAjaxItem::isEmpty in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/image/tests/modules/image_module_test/src/Plugin/Field/FieldType/DummyAjaxItem.php \Drupal\image_module_test\Plugin\Field\FieldType\DummyAjaxItem::isEmpty()
  2. 9 core/modules/image/tests/modules/image_module_test/src/Plugin/Field/FieldType/DummyAjaxItem.php \Drupal\image_module_test\Plugin\Field\FieldType\DummyAjaxItem::isEmpty()

Determines whether the data structure is empty.

Return value

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

Overrides Map::isEmpty

File

core/modules/image/tests/modules/image_module_test/src/Plugin/Field/FieldType/DummyAjaxItem.php, line 41

Class

DummyAjaxItem
Defines a dummy field containing an AJAX handler.

Namespace

Drupal\image_module_test\Plugin\Field\FieldType

Code

public function isEmpty() {
  return empty($this
    ->get('value')
    ->getValue());
}