class TestPathBasedBreadcrumbBuilder
Same name in other branches
- 9 core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php \Drupal\Tests\system\Unit\Breadcrumbs\TestPathBasedBreadcrumbBuilder
- 8.9.x core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php \Drupal\Tests\system\Unit\Breadcrumbs\TestPathBasedBreadcrumbBuilder
- 11.x core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php \Drupal\Tests\system\Unit\Breadcrumbs\TestPathBasedBreadcrumbBuilder
Helper class for testing purposes only.
Hierarchy
- class \Drupal\system\PathBasedBreadcrumbBuilder implements \Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface uses \Drupal\Core\StringTranslation\StringTranslationTrait
- class \Drupal\Tests\system\Unit\Breadcrumbs\TestPathBasedBreadcrumbBuilder extends \Drupal\system\PathBasedBreadcrumbBuilder
Expanded class hierarchy of TestPathBasedBreadcrumbBuilder
File
-
core/
modules/ system/ tests/ src/ Unit/ Breadcrumbs/ PathBasedBreadcrumbBuilderTest.php, line 411
Namespace
Drupal\Tests\system\Unit\BreadcrumbsView source
class TestPathBasedBreadcrumbBuilder extends PathBasedBreadcrumbBuilder {
protected LinkGeneratorInterface $linkGenerator;
public function setStringTranslation(TranslationInterface $string_translation) {
$this->stringTranslation = $string_translation;
return $this;
}
public function setLinkGenerator(LinkGeneratorInterface $link_generator) {
$this->linkGenerator = $link_generator;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
PathBasedBreadcrumbBuilder::$accessManager | protected | property | The access check service. | ||
PathBasedBreadcrumbBuilder::$config | protected | property | Site config object. | ||
PathBasedBreadcrumbBuilder::$context | protected | property | The router request context. | ||
PathBasedBreadcrumbBuilder::$currentPath | protected | property | The current path service. | ||
PathBasedBreadcrumbBuilder::$currentUser | protected | property | The current user object. | ||
PathBasedBreadcrumbBuilder::$pathMatcher | protected | property | The patch matcher service. | ||
PathBasedBreadcrumbBuilder::$pathProcessor | protected | property | The inbound path processor. | ||
PathBasedBreadcrumbBuilder::$router | protected | property | The dynamic router service. | ||
PathBasedBreadcrumbBuilder::$titleResolver | protected | property | The title resolver. | ||
PathBasedBreadcrumbBuilder::applies | public | function | Whether this breadcrumb builder should be used to build the breadcrumb. | Overrides BreadcrumbBuilderInterface::applies | |
PathBasedBreadcrumbBuilder::build | public | function | Builds the breadcrumb. | Overrides BreadcrumbBuilderInterface::build | |
PathBasedBreadcrumbBuilder::getRequestForPath | protected | function | Matches a path in the router. | ||
PathBasedBreadcrumbBuilder::__construct | public | function | Constructs the PathBasedBreadcrumbBuilder. | ||
StringTranslationTrait::$stringTranslation | protected | property | The string translation service. | 3 | |
StringTranslationTrait::formatPlural | protected | function | Formats a string containing a count of items. | ||
StringTranslationTrait::getNumberOfPlurals | protected | function | Returns the number of plurals supported by a given language. | ||
StringTranslationTrait::getStringTranslation | protected | function | Gets the string translation service. | ||
StringTranslationTrait::t | protected | function | Translates a string to the current language or to a given language. | ||
TestPathBasedBreadcrumbBuilder::$linkGenerator | protected | property | |||
TestPathBasedBreadcrumbBuilder::setLinkGenerator | public | function | |||
TestPathBasedBreadcrumbBuilder::setStringTranslation | public | function | Sets the string translation service to use. | Overrides StringTranslationTrait::setStringTranslation |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.