You are here

public function AvatarKitFormAlter::getFieldConfig in Avatar Kit 8.2

Get the field config entity.

Parameters

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

Return value

\Drupal\field\FieldConfigInterface The field config entity.

2 calls to AvatarKitFormAlter::getFieldConfig()
AvatarKitFormAlter::fieldConfigEditForm in src/AvatarKitFormAlter.php
Implements hook_form_FORM_ID_alter().
AvatarKitFormAlter::fieldConfigEditFormSubmit in src/AvatarKitFormAlter.php
Submission handler for field config edit form alter.

File

src/AvatarKitFormAlter.php, line 137

Class

AvatarKitFormAlter
Drupal form alters.

Namespace

Drupal\avatars

Code

public function getFieldConfig(FormStateInterface $form_state) : FieldConfigInterface {

  /** @var \Drupal\field_ui\Form\FieldConfigEditForm $form_object */
  $form_object = $form_state
    ->getFormObject();
  return $form_object
    ->getEntity();
}