function SystemBreadcrumbBlock::build

Same name in other branches
  1. 9 core/modules/system/src/Plugin/Block/SystemBreadcrumbBlock.php \Drupal\system\Plugin\Block\SystemBreadcrumbBlock::build()
  2. 8.9.x 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 72

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.