Skip to content
Snippets Groups Projects

Default N/A option removal for Boolean fields

Open Arunkumar Kuppuswamy requested to merge issue/drupal-3461121:3461121-remove-the-na into 11.x
2 files
+ 9
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -63,7 +63,7 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen
* {@inheritdoc}
*/
protected function getEmptyLabel() {
if (!$this->required && !$this->multiple) {
if (!$this->required && !$this->multiple && ($this->field_type != 'boolean')) {
return $this->t('N/A');
}
}
Loading