You are here

public function BaseExtension::settingsForm in Markdown 3.0.x

Returns the configuration form elements specific to this plugin.

Parameters

array $element: The element render array for the extension configuration form.

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

\Drupal\markdown\Plugin\Filter\MarkdownFilterInterface $filter: The filter this form belongs to.

Return value

array The renderable form array representing the entire configuration form.

Overrides MarkdownExtensionInterface::settingsForm

3 calls to BaseExtension::settingsForm()
AtAutolinker::settingsForm in src/Plugin/Markdown/Extension/AtAutolinker.php
Returns the configuration form elements specific to this plugin.
HashAutolinker::settingsForm in src/Plugin/Markdown/Extension/HashAutolinker.php
Returns the configuration form elements specific to this plugin.
LinkRenderer::settingsForm in src/Plugin/Markdown/Extension/LinkRenderer.php
Returns the configuration form elements specific to this plugin.
3 methods override BaseExtension::settingsForm()
AtAutolinker::settingsForm in src/Plugin/Markdown/Extension/AtAutolinker.php
Returns the configuration form elements specific to this plugin.
HashAutolinker::settingsForm in src/Plugin/Markdown/Extension/HashAutolinker.php
Returns the configuration form elements specific to this plugin.
LinkRenderer::settingsForm in src/Plugin/Markdown/Extension/LinkRenderer.php
Returns the configuration form elements specific to this plugin.

File

src/Plugin/Markdown/Extension/BaseExtension.php, line 205

Class

BaseExtension
Base class for markdown extensions.

Namespace

Drupal\markdown\Plugin\Markdown\Extension

Code

public function settingsForm(array $element, FormStateInterface $formState, MarkdownFilterInterface $filter) {
  $definition = $this
    ->getPluginDefinition();
  $element['provider'] = [
    '#type' => 'value',
    '#value' => $definition['provider'],
  ];
  return $element;
}