You are here

protected function BreadcrumbManagerBuilder::setExcludedPaths in Breadcrumb Manager 8

Set excluded paths.

1 call to BreadcrumbManagerBuilder::setExcludedPaths()
BreadcrumbManagerBuilder::getExcludedPaths in src/Breadcrumb/BreadcrumbManagerBuilder.php
Get excluded paths.

File

src/Breadcrumb/BreadcrumbManagerBuilder.php, line 203

Class

BreadcrumbManagerBuilder
Class BreadcrumbManagerBuilder.

Namespace

Drupal\breadcrumb_manager\Breadcrumb

Code

protected function setExcludedPaths() {
  $excluded_paths = $this->breadcrumbConfig
    ->get('excluded_paths');
  $this->excludedPaths = explode("\r\n", $excluded_paths);

  // Exclude Front page if not necessary.
  if (!$this->breadcrumbConfig
    ->get('show_front')) {
    $this->excludedPaths[] = $this->config
      ->get('page.front');
  }
}