function EmailItem::isEmpty

Overrides Map::isEmpty

File

core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EmailItem.php, line 85

Class

EmailItem
Defines the 'email' field type.

Namespace

Drupal\Core\Field\Plugin\Field\FieldType

Code

public function isEmpty() {
  return $this->value === NULL || $this->value === '';
}

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