public function TrailingSlashOutboundPathProcessor::isAdminPath in Trailing Slash 8
Parameters
$path:
$options:
Return value
bool
1 call to TrailingSlashOutboundPathProcessor::isAdminPath()
File
- src/
PathProcessor/ TrailingSlashOutboundPathProcessor.php, line 109
Class
- TrailingSlashOutboundPathProcessor
- Class TrailingSlashOutboundPathProcessor.
Namespace
Drupal\trailing_slash\PathProcessorCode
public function isAdminPath($path, $options) : bool {
if (strpos($path, '/admin') === 0 || strpos($path, '/devel') === 0) {
return TRUE;
}
if (!empty($options['route'])) {
return $this->adminContext
->isAdminRoute($options['route']);
}
return FALSE;
}