public function TestItem::isEmpty in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItem.php \Drupal\field_test\Plugin\Field\FieldType\TestItem::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/ field/ tests/ modules/ field_test/ src/ Plugin/ Field/ FieldType/ TestItem.php, line 138 - Contains \Drupal\field_test\Plugin\Field\FieldType\TestItem.
Class
- TestItem
- Defines the 'test_field' entity field item.
Namespace
Drupal\field_test\Plugin\Field\FieldTypeCode
public function isEmpty() {
return empty($this->value);
}