You are here

protected function InlineFormBase::validateConfiguration in Commerce Core 8.2

Validates configuration.

Throws

\RuntimeException Thrown if a configuration value is invalid.

3 calls to InlineFormBase::validateConfiguration()
CustomerProfile::validateConfiguration in modules/order/src/Plugin/Commerce/InlineForm/CustomerProfile.php
Validates configuration.
InlineFormBase::__construct in src/Plugin/Commerce/InlineForm/InlineFormBase.php
Constructs a new InlineFormBase object.
PluginConfiguration::__construct in src/Plugin/Commerce/InlineForm/PluginConfiguration.php
Constructs a new PluginConfiguration object.
1 method overrides InlineFormBase::validateConfiguration()
CustomerProfile::validateConfiguration in modules/order/src/Plugin/Commerce/InlineForm/CustomerProfile.php
Validates configuration.

File

src/Plugin/Commerce/InlineForm/InlineFormBase.php, line 86

Class

InlineFormBase
Provides the base class for inline forms.

Namespace

Drupal\commerce\Plugin\Commerce\InlineForm

Code

protected function validateConfiguration() {
  foreach ($this
    ->requiredConfiguration() as $key) {
    if (empty($this->configuration[$key])) {
      throw new \RuntimeException(sprintf('The "%s" plugin requires the "%s" configuration key', $this->pluginId, $key));
    }
  }
}