You are here

public function OverridesEntityForm::buildForm in Layout Builder Symmetric Translations 8

Form constructor.

Parameters

array $form: An associative array containing the structure of the form.

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

Return value

array The form structure.

Overrides OverridesEntityForm::buildForm

File

src/Form/OverridesEntityForm.php, line 21

Class

OverridesEntityForm
Extended OverridesEntityForm

Namespace

Drupal\layout_builder_st\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, SectionStorageInterface $section_storage = NULL) {
  $form = parent::buildForm($form, $form_state, $section_storage);
  $form[OverridesSectionStorage::TRANSLATED_CONFIGURATION_FIELD_NAME]['#access'] = TRUE;
  return $form;
}