You are here

public function WebformEntitySettingsBaseForm::form in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/EntitySettings/WebformEntitySettingsBaseForm.php \Drupal\webform\EntitySettings\WebformEntitySettingsBaseForm::form()

Gets the actual form array to be built.

Overrides EntityForm::form

See also

\Drupal\Core\Entity\EntityForm::processForm()

\Drupal\Core\Entity\EntityForm::afterBuild()

6 calls to WebformEntitySettingsBaseForm::form()
WebformEntitySettingsAccessForm::form in src/EntitySettings/WebformEntitySettingsAccessForm.php
Gets the actual form array to be built.
WebformEntitySettingsAssetsForm::form in src/EntitySettings/WebformEntitySettingsAssetsForm.php
Gets the actual form array to be built.
WebformEntitySettingsConfirmationForm::form in src/EntitySettings/WebformEntitySettingsConfirmationForm.php
Gets the actual form array to be built.
WebformEntitySettingsFormForm::form in src/EntitySettings/WebformEntitySettingsFormForm.php
Gets the actual form array to be built.
WebformEntitySettingsGeneralForm::form in src/EntitySettings/WebformEntitySettingsGeneralForm.php
Gets the actual form array to be built.

... See full list

6 methods override WebformEntitySettingsBaseForm::form()
WebformEntitySettingsAccessForm::form in src/EntitySettings/WebformEntitySettingsAccessForm.php
Gets the actual form array to be built.
WebformEntitySettingsAssetsForm::form in src/EntitySettings/WebformEntitySettingsAssetsForm.php
Gets the actual form array to be built.
WebformEntitySettingsConfirmationForm::form in src/EntitySettings/WebformEntitySettingsConfirmationForm.php
Gets the actual form array to be built.
WebformEntitySettingsFormForm::form in src/EntitySettings/WebformEntitySettingsFormForm.php
Gets the actual form array to be built.
WebformEntitySettingsGeneralForm::form in src/EntitySettings/WebformEntitySettingsGeneralForm.php
Gets the actual form array to be built.

... See full list

File

src/EntitySettings/WebformEntitySettingsBaseForm.php, line 19

Class

WebformEntitySettingsBaseForm
Base webform entity settings form.

Namespace

Drupal\webform\EntitySettings

Code

public function form(array $form, FormStateInterface $form_state) {
  $default_settings = $form_state
    ->get('default_settings') ?: $this
    ->config('webform.settings')
    ->get('settings');
  $this
    ->setElementDescriptionsRecursive($form, $default_settings);
  return parent::form($form, $form_state);
}