You are here

private function FlowForm::configIsOverridden in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x src/Form/FlowForm.php \Drupal\cms_content_sync\Form\FlowForm::configIsOverridden()
  2. 2.0.x src/Form/FlowForm.php \Drupal\cms_content_sync\Form\FlowForm::configIsOverridden()

Check if a config is overridden.

Right now it only checks if the config is in the $config-array (overridden by the settings.php)

@todo take care of overriding by modules and languages

Parameters

string $config_key: The configuration key

string $config_name: The configuration name

Return value

bool

1 call to FlowForm::configIsOverridden()
FlowForm::disableOverridenConfigs in src/Form/FlowForm.php
Disable form elements which are overridden.

File

src/Form/FlowForm.php, line 2168

Class

FlowForm
Form handler for the Flow add and edit forms.

Namespace

Drupal\cms_content_sync\Form

Code

private function configIsOverridden($config_key, $config_name) {
  global $config;
  return isset($config[$config_name][$config_key]);
}