You are here

public function DomainConfigUITrait::implodePathSettings in Domain Access 8

Turns an array of paths into a linebreak separated string.

Parameters

array $path_array: An array of registered paths.

Return value

string A normalized string of paths.

3 calls to DomainConfigUITrait::implodePathSettings()
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.

File

domain_config_ui/src/DomainConfigUITrait.php, line 70

Class

DomainConfigUITrait
Contains helper classes for the user interface.

Namespace

Drupal\domain_config_ui

Code

public function implodePathSettings(array $path_array) {
  return implode("\r\n", $path_array);
}