function ShapeItem::isEmpty
Same name in other branches
- 9 core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldType/ShapeItem.php \Drupal\entity_test\Plugin\Field\FieldType\ShapeItem::isEmpty()
- 8.9.x core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldType/ShapeItem.php \Drupal\entity_test\Plugin\Field\FieldType\ShapeItem::isEmpty()
- 10 core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldType/ShapeItem.php \Drupal\entity_test\Plugin\Field\FieldType\ShapeItem::isEmpty()
Overrides Map::isEmpty
File
-
core/
modules/ system/ tests/ modules/ entity_test/ src/ Plugin/ Field/ FieldType/ ShapeItem.php, line 78
Class
- ShapeItem
- Defines the 'shape' field type.
Namespace
Drupal\entity_test\Plugin\Field\FieldTypeCode
public function isEmpty() {
$item = $this->getValue();
return empty($item['shape']) && empty($item['color']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.