public function StatusOverride::getSplitOverride in Configuration Split 2.0.x
Get the split override setting.
Parameters
string $name: The name of the split.
Return value
bool|null The state, null if not managed.
File
- src/
Config/ StatusOverride.php, line 74
Class
- StatusOverride
- A config override for config split based on the drupal state.
Namespace
Drupal\config_split\ConfigCode
public function getSplitOverride(string $name) {
$name = self::fixName($name);
$overrides = $this->state
->get('config_split_override_state', []);
if (isset($overrides[$name])) {
return (bool) $overrides[$name];
}
return NULL;
}