You are here

public function SettingsForm::buildSubform in Markdown 8.2

Builds the subform for markdown settings.

Note: building a subform requires that it's ultimately constructed in a #process callback. This is to ensure the complete form (from the parent) has been constructed properly.

Parameters

array $element: A render array element.

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

Return value

array The modified render array element.

Deprecated

in markdown:8.x-2.0 and is removed from markdown:3.0.0. No replacement.

See also

https://www.drupal.org/project/markdown/issues/3142418

File

src/Form/SettingsForm.php, line 114

Class

SettingsForm
Markdown Settings Form.

Namespace

Drupal\markdown\Form

Code

public function buildSubform(array $element, FormStateInterface $form_state) {
  return $element;
}