interface BreadcrumbBuilderInterface in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Breadcrumb/BreadcrumbBuilderInterface.php \Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface
Defines an interface for classes that build breadcrumbs.
Hierarchy
- interface \Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface
Expanded class hierarchy of BreadcrumbBuilderInterface
All classes that implement BreadcrumbBuilderInterface
6 files declare their use of BreadcrumbBuilderInterface
- BookBreadcrumbBuilder.php in core/
modules/ book/ src/ BookBreadcrumbBuilder.php - Contains \Drupal\book\BookBreadcrumbBuilder.
- CommentBreadcrumbBuilder.php in core/
modules/ comment/ src/ CommentBreadcrumbBuilder.php - Contains \Drupal\comment\CommentBreadcrumbBuilder.
- ForumBreadcrumbBuilderBase.php in core/
modules/ forum/ src/ Breadcrumb/ ForumBreadcrumbBuilderBase.php - Contains \Drupal\forum\Breadcrumb\ForumBreadcrumbBuilderBase.
- PathBasedBreadcrumbBuilder.php in core/
modules/ system/ src/ PathBasedBreadcrumbBuilder.php - Contains \Drupal\system\PathBasedBreadcrumbBuilder.
- SystemBreadcrumbBlock.php in core/
modules/ system/ src/ Plugin/ Block/ SystemBreadcrumbBlock.php - Contains \Drupal\system\Plugin\Block\SystemBreadcrumbBlock.
File
- core/
lib/ Drupal/ Core/ Breadcrumb/ BreadcrumbBuilderInterface.php, line 15 - Contains \Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface.
Namespace
Drupal\Core\BreadcrumbView source
interface BreadcrumbBuilderInterface {
/**
* Whether this breadcrumb builder should be used to build the breadcrumb.
*
* @param \Drupal\Core\Routing\RouteMatchInterface $route_match
* The current route match.
*
* @return bool
* TRUE if this builder should be used or FALSE to let other builders
* decide.
*/
public function applies(RouteMatchInterface $route_match);
/**
* Builds the breadcrumb.
*
* @param \Drupal\Core\Routing\RouteMatchInterface $route_match
* The current route match.
*
* @return \Drupal\Core\Breadcrumb\Breadcrumb
* A breadcrumb.
*/
public function build(RouteMatchInterface $route_match);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BreadcrumbBuilderInterface:: |
public | function | Whether this breadcrumb builder should be used to build the breadcrumb. | 7 |
BreadcrumbBuilderInterface:: |
public | function | Builds the breadcrumb. | 6 |