function DummyAjaxItem::isEmpty

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

Overrides Map::isEmpty

File

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

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());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.