function TestPathBasedBreadcrumbBuilder::setStringTranslation

Same name in other branches
  1. 9 core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php \Drupal\Tests\system\Unit\Breadcrumbs\TestPathBasedBreadcrumbBuilder::setStringTranslation()
  2. 8.9.x core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php \Drupal\Tests\system\Unit\Breadcrumbs\TestPathBasedBreadcrumbBuilder::setStringTranslation()
  3. 11.x core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php \Drupal\Tests\system\Unit\Breadcrumbs\TestPathBasedBreadcrumbBuilder::setStringTranslation()

Overrides StringTranslationTrait::setStringTranslation

File

core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php, line 437

Class

TestPathBasedBreadcrumbBuilder
Helper class for testing purposes only.

Namespace

Drupal\Tests\system\Unit\Breadcrumbs

Code

public function setStringTranslation(TranslationInterface $string_translation) {
    $this->stringTranslation = $string_translation;
    return $this;
}

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