You are here

public function SynonymsBehaviorConfigurableInterface::buildConfigurationForm in Synonyms 8

Build configuration form.

Parameters

array $form: Form into which your configuration form will be embedded. You are supposed to extend this array with additional configuration form elements that your behavior needs.

\Drupal\Core\Form\FormStateInterface $form_state: Form state object that corresponds to this form.

array $configuration: Array of existing configuration for your behavior. Normally you would use it as a source of default values for your configuration form elements.

\Drupal\synonyms\SynonymInterface $synonym_config: Synonym config entity in the context of which the form is being built.

Return value

array Extended $form that includes the form elements required for configuration of your behavior

2 methods override SynonymsBehaviorConfigurableInterface::buildConfigurationForm()
AutocompleteService::buildConfigurationForm in src/SynonymsService/Behavior/AutocompleteService.php
Build configuration form.
SelectService::buildConfigurationForm in src/SynonymsService/Behavior/SelectService.php
Build configuration form.

File

src/SynonymsService/Behavior/SynonymsBehaviorConfigurableInterface.php, line 32

Class

SynonymsBehaviorConfigurableInterface
Interface of a configurable synonyms behavior.

Namespace

Drupal\synonyms\SynonymsService\Behavior

Code

public function buildConfigurationForm(array $form, FormStateInterface $form_state, array $configuration, SynonymInterface $synonym_config);