You are here

public function UserFlagType::submitConfigurationForm in Flag 8.4

Handles the form submit for this action link plugin.

Derived classes will want to override this.

Parameters

array $form: The form array.

FormStateInterface $form_state: The form state.

Overrides EntityFlagType::submitConfigurationForm

File

src/Plugin/Flag/UserFlagType.php, line 63

Class

UserFlagType
Provides a flag type for user entities.

Namespace

Drupal\flag\Plugin\Flag

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  parent::submitConfigurationForm($form, $form_state);
  $this->configuration['show_on_profile'] = $form_state
    ->getValue([
    'show_on_profile',
  ]);
}