You are here

public function MobileNumberItem::fieldSettingsFormValidate in Mobile Number 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Field/FieldType/MobileNumberItem.php \Drupal\mobile_number\Plugin\Field\FieldType\MobileNumberItem::fieldSettingsFormValidate()

Validate callback for mobile number field item.

Parameters

array $form: Complete form.

\Drupal\Core\Form\FormStateInterface $form_state: Form state.

File

src/Plugin/Field/FieldType/MobileNumberItem.php, line 277

Class

MobileNumberItem
Plugin implementation of the 'mobile_number' field type.

Namespace

Drupal\mobile_number\Plugin\Field\FieldType

Code

public function fieldSettingsFormValidate(array $form, FormStateInterface $form_state) {
  $submit_handlers = $form_state
    ->getSubmitHandlers();
  $submit_handlers[] = [
    $this,
    'fieldSettingsFormSubmit',
  ];
  $form_state
    ->setSubmitHandlers($submit_handlers);
}