function MultiValueTestItem::isEmpty

Overrides Map::isEmpty

File

core/modules/system/tests/modules/entity_test_update/src/Plugin/Field/FieldType/MultiValueTestItem.php, line 55

Class

MultiValueTestItem
Defines the 'multi_value_test' field type.

Namespace

Drupal\entity_test_update\Plugin\Field\FieldType

Code

public function isEmpty() {
  $item = $this->getValue();
  return empty($item['value1']) && empty($item['value2']);
}

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