You are here

public function PatternSettingTypeBase::buildConfigurationForm in UI Patterns Settings 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/PatternSettingTypeBase.php \Drupal\ui_patterns_settings\Plugin\PatternSettingTypeBase::buildConfigurationForm()

Creates a generic configuration form for all settings types. Individual settings plugins can add elements to this form by overriding PatternSettingTypeBaseInterface::settingsForm(). Most plugins should not override this method unless they need to alter the generic form elements.

Overrides PatternSettingTypeInterface::buildConfigurationForm

See also

\Drupal\Core\Block\BlockBase::blockForm()

File

src/Plugin/PatternSettingTypeBase.php, line 145

Class

PatternSettingTypeBase
Base class for UI Patterns Setting plugins.

Namespace

Drupal\ui_patterns_settings\Plugin

Code

public function buildConfigurationForm(array $form, $value) {
  $def = $this
    ->getPatternSettingDefinition();
  $form = $this
    ->settingsForm($form, $value, $def);
  return $form;
}