Skip to content

Drupal\helper\Form\ValidatableConfigFormBase

Base class for implementing configuration forms validatable by constraints.

Implements:

Drupal\Core\Form\FormInterface, Drupal\Core\DependencyInjection\ContainerInjectionInterface

Extend:

Drupal\Core\Form\ConfigFormBase

Methods

Name Description

Inherited methods

Name Description
__construct Constructs a \Drupal\system\ConfigFormBase object.
__sleep {@inheritdoc}
__wakeup {@inheritdoc}
buildForm {@inheritdoc}
checkConfigOverrides Form #after_build callback: Adds message if overrides exist.
create {@inheritdoc}
getFormId Returns a unique string identifying the form.
loadDefaultValuesFromConfig Process callback to recursively load default values from #config_target.
messenger Gets the messenger.
resetConfigFactory Resets the configuration factory.
setConfigFactory Sets the config factory for this form.
setLoggerFactory Injects the logger channel factory.
setMessenger Sets the messenger.
setRedirectDestination Sets the redirect destination service.
setRequestStack Sets the request stack object to use.
setStringTranslation Sets the string translation service to use.
storeConfigKeyToFormElementMap Render API callback: Stores a map of element names to config keys.
submitForm {@inheritdoc}
validateForm {@inheritdoc}