You are here

public function CurrentPathHelper::getUrls in Menu Trail By Path 8

@inheritdoc

Overrides PathHelperInterface::getUrls

File

src/Path/CurrentPathHelper.php, line 38

Class

CurrentPathHelper

Namespace

Drupal\menu_trail_by_path\Path

Code

public function getUrls() {
  $trail_urls = $this
    ->getCurrentPathUrls();
  if ($current_request_url = $this
    ->getCurrentRequestUrl()) {
    $trail_urls[] = $current_request_url;
  }
  return $trail_urls;
}