protected static function ConfigSplitEntityForm::isConflicting in Configuration Split 8
Same name and namespace in other branches
- 2.0.x src/Form/ConfigSplitEntityForm.php \Drupal\config_split\Form\ConfigSplitEntityForm::isConflicting()
Check whether the folder name conflicts with the default sync directory.
Parameters
string $folder: The split folder name to check.
Return value
bool True if the folder is inside the sync directory.
1 call to ConfigSplitEntityForm::isConflicting()
- ConfigSplitEntityForm::validateForm in src/
Form/ ConfigSplitEntityForm.php - Form validation handler.
File
- src/
Form/ ConfigSplitEntityForm.php, line 381
Class
- ConfigSplitEntityForm
- The entity form.
Namespace
Drupal\config_split\FormCode
protected static function isConflicting($folder) {
return strpos(rtrim($folder, '/') . '/', rtrim(Settings::get('config_sync_directory'), '/') . '/') !== FALSE;
}