protected ModuleRouteSubscriber::explodeString($string, $separator = ',')
Explodes a string based on a separator.
Parameters
string $string: The string to explode.
string $separator: The string separator to explode with.
Return value
array An array of exploded (and trimmed) values.
File
- core/lib/Drupal/Core/EventSubscriber/ModuleRouteSubscriber.php, line 75
Class
- ModuleRouteSubscriber
- A route subscriber to remove routes that depend on modules being enabled.
Namespace
Drupal\Core\EventSubscriber
Code
protected function explodeString($string, $separator = ',') { return array_filter(array_map('trim', explode($separator, $string))); }
Please login to continue.