You are here

public function InternationalPhone::isEmpty in International Phone Field 8

Define when the field type is empty.

This method is important and used internally by Drupal. Take a moment to define when the field fype must be considered empty.

Overrides Map::isEmpty

File

src/Plugin/Field/FieldType/InternationalPhone.php, line 71

Class

InternationalPhone
Plugin implementation of the 'Internation Phone' field type.

Namespace

Drupal\international_phone\Plugin\Field\FieldType

Code

public function isEmpty() {
  $isEmpty = empty($this
    ->get('value')
    ->getValue());
  return $isEmpty;
}