You are here

protected function ConfigBit::targetConfigExpectedToHaveIndex in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 9.0.x

Same name and namespace in other branches
  1. 8.8 src/Config/ConfigBit.php \Drupal\varbase\Config\ConfigBit::targetConfigExpectedToHaveIndex()

Check target config expected to have index.

Parameters

array $config_action: The config action.

array $target_config_data: The target config data.

1 call to ConfigBit::targetConfigExpectedToHaveIndex()
ConfigBit::expectedTargetConfig in src/Config/ConfigBit.php
Check expected target config.

File

src/Config/ConfigBit.php, line 549

Class

ConfigBit
Class ConfigBit.

Namespace

Drupal\varbase\Config

Code

protected function targetConfigExpectedToHaveIndex(array $config_action, array $target_config_data) {
  if (isset($config_action['target_config_expected_to_have_index'])) {
    if (isset($target_config_data[$config_action['target_config_expected_to_have_index']])) {
      return TRUE;
    }
    else {
      return FALSE;
    }
  }
  return TRUE;
}