You are here

public function FixtureTrait::fixtureLink in Mini site 8

Create a fixture link.

Used to avoid calling Drupal theme system.

Parameters

string $text: Link text.

string $url: Link URL.

Return value

string Html anchor link.

1 call to FixtureTrait::fixtureLink()
MinisiteTestBase::getTestFilesStubValid in tests/src/Functional/MinisiteTestBase.php
Get valid test files stub.

File

tests/src/Traits/FixtureTrait.php, line 191

Class

FixtureTrait
Trait FixtureTrait.

Namespace

Drupal\Tests\minisite\Traits

Code

public function fixtureLink($text, $url) {
  return "<a href=\"{$url}\">{$text}</a>";
}