public function RgItem::isEmpty in Brazilian IDs 8
Determines whether the data structure is empty.
Return value
bool TRUE if the data structure is empty, FALSE otherwise.
Overrides Map::isEmpty
File
- src/
Plugin/ Field/ FieldType/ RgItem.php, line 75
Class
- RgItem
- Field type for RG numbers.
Namespace
Drupal\brazilian_ids\Plugin\Field\FieldTypeCode
public function isEmpty() {
$number = $this
->get('number')
->getValue();
return empty($number);
}