You are here

public function ConfigurationInterface::buildConfigurationForm in Synonyms 2.0.x

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 provider needs.

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

array $configuration: Array of existing configuration for your provider. 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 provider

File

src/ProviderInterface/ConfigurationInterface.php, line 33

Class

ConfigurationInterface
Interface of a configurable synonyms provider.

Namespace

Drupal\synonyms\ProviderInterface

Code

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