function SystemBreadcrumbBlock::build

Same name and namespace in other branches
  1. 8.9.x core/modules/system/src/Plugin/Block/SystemBreadcrumbBlock.php \Drupal\system\Plugin\Block\SystemBreadcrumbBlock::build()
  2. 10 core/modules/system/src/Plugin/Block/SystemBreadcrumbBlock.php \Drupal\system\Plugin\Block\SystemBreadcrumbBlock::build()
  3. 11.x core/modules/system/src/Plugin/Block/SystemBreadcrumbBlock.php \Drupal\system\Plugin\Block\SystemBreadcrumbBlock::build()

Overrides BlockPluginInterface::build

File

core/modules/system/src/Plugin/Block/SystemBreadcrumbBlock.php, line 71

Class

SystemBreadcrumbBlock
Provides a block to display the breadcrumbs.

Namespace

Drupal\system\Plugin\Block

Code

public function build() {
    return $this->breadcrumbManager
        ->build($this->routeMatch)
        ->toRenderable();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.