public function DomainConfigUITrait::explodePathSettings in Domain Access 8
Turns the path string into an array.
Parameters
string $path_string: An string of registered paths.
Return value
array A normalized array of paths.
6 calls to DomainConfigUITrait::explodePathSettings()
- DomainConfigUISettingsTest::testSettings in domain_config_ui/
tests/ src/ FunctionalJavascript/ DomainConfigUISettingsTest.php - Tests ability to add/remove forms.
- DomainConfigUITrait::addPath in domain_config_ui/
src/ DomainConfigUITrait.php - Adds a path to the registry.
- DomainConfigUITrait::removePath in domain_config_ui/
src/ DomainConfigUITrait.php - Removes a path from the registry.
- DomainConfigUITrait::standardizePaths in domain_config_ui/
src/ DomainConfigUITrait.php - Normalizes the path string using \r\n for linebreaks.
- SettingsForm::submitForm in domain_config_ui/
src/ Form/ SettingsForm.php - Form submission handler.
File
- domain_config_ui/
src/ DomainConfigUITrait.php, line 83
Class
- DomainConfigUITrait
- Contains helper classes for the user interface.
Namespace
Drupal\domain_config_uiCode
public function explodePathSettings($path_string) {
// Replace newlines with a logical 'or'.
$find = '/(\\r\\n?|\\n)/';
$replace = '|';
$list = preg_replace($find, $replace, $path_string);
return explode("|", $list);
}