Search for to

  1. Search 7.x for to
  2. Search 9.5.x for to
  3. Search 10.3.x for to
  4. Search 11.x for to
  5. Other projects
Title Object type File name Summary
LinkExternalProtocolsConstraintValidatorTest::testValidateIgnoresInternalUrls function core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkExternalProtocolsConstraintValidatorTest.php @covers ::validate[[api-linebreak]]
LinkExternalProtocolsConstraintValidatorTest::testValidateWithMalformedUri function core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkExternalProtocolsConstraintValidatorTest.php @covers ::validate[[api-linebreak]]
LinkFieldTest::$fieldStorage property core/modules/link/tests/src/Functional/LinkFieldTest.php A field to use in this test class.
LinkFormatter::$pathValidator property core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php The path validator service.
LinkGenerator class core/lib/Drupal/Core/Utility/LinkGenerator.php Provides a class which generates a link with route names and parameters.
LinkGenerator.php file core/lib/Drupal/Core/Utility/LinkGenerator.php
LinkGenerator::$moduleHandler property core/lib/Drupal/Core/Utility/LinkGenerator.php The module handler firing the route_link alter hook.
LinkGenerator::$renderer property core/lib/Drupal/Core/Utility/LinkGenerator.php The renderer service.
LinkGenerator::$urlGenerator property core/lib/Drupal/Core/Utility/LinkGenerator.php The url generator.
LinkGenerator::doGenerate function core/lib/Drupal/Core/Utility/LinkGenerator.php Generates the link.
LinkGenerator::generate function core/lib/Drupal/Core/Utility/LinkGenerator.php For anonymous users, the "active" class will be calculated on the server,
because most sites serve each anonymous user the same cached page anyway.
For authenticated users, the "active" class will be calculated on the
client…
LinkGenerator::generateFromLink function core/lib/Drupal/Core/Utility/LinkGenerator.php Renders a link from a link object.
LinkGenerator::__construct function core/lib/Drupal/Core/Utility/LinkGenerator.php Constructs a LinkGenerator instance.
LinkGeneratorInterface interface core/lib/Drupal/Core/Utility/LinkGeneratorInterface.php Defines an interface for generating links from route names and parameters.
LinkGeneratorInterface.php file core/lib/Drupal/Core/Utility/LinkGeneratorInterface.php
LinkGeneratorInterface::generate function core/lib/Drupal/Core/Utility/LinkGeneratorInterface.php Renders a link to a URL.
LinkGeneratorInterface::generateFromLink function core/lib/Drupal/Core/Utility/LinkGeneratorInterface.php Renders a link from a link object.
LinkGeneratorTest class core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php @coversDefaultClass \Drupal\Core\Utility\LinkGenerator[[api-linebreak]]
@group Utility
LinkGeneratorTest.php file core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php
LinkGeneratorTest::$defaultOptions property core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Contains the LinkGenerator default options.
LinkGeneratorTest::$linkGenerator property core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php The tested link generator.
LinkGeneratorTest::$moduleHandler property core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php The mocked module handler.
LinkGeneratorTest::$renderer property core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php The mocked renderer service.
LinkGeneratorTest::$urlAssembler property core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php The mocked URL Assembler service.
LinkGeneratorTest::$urlGenerator property core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php The mocked url generator.
LinkGeneratorTest::assertLink function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Checks that a link with certain properties exists in a given HTML snippet.
LinkGeneratorTest::assertNoXPathResults function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Checks that the given XPath query has no results in a given HTML snippet.
LinkGeneratorTest::providerTestGenerateHrefs function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Provides test data for testing the link method.
LinkGeneratorTest::setUp function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php
LinkGeneratorTest::testGenerate function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the generate() method with a route.
LinkGeneratorTest::testGenerateActive function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the active class on the link method.
LinkGeneratorTest::testGenerateAttributes function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the link method with additional attributes.
LinkGeneratorTest::testGenerateBubbleableMetadata function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the LinkGenerator's support for collecting bubbleable metadata.
LinkGeneratorTest::testGenerateButton function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the generate() method with the <button> route.
LinkGeneratorTest::testGenerateExternal function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the generate() method with an external URL.
LinkGeneratorTest::testGenerateHrefs function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the link method with certain hrefs.
LinkGeneratorTest::testGenerateNoLink function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the generate() method with the <nolink> route.
LinkGeneratorTest::testGenerateNone function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the generate() method with the <none> route.
LinkGeneratorTest::testGenerateOptions function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the link method with arbitrary passed options.
LinkGeneratorTest::testGenerateParametersAsQuery function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the link method with passed query options via parameters.
LinkGeneratorTest::testGenerateQuery function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the link method with passed query options.
LinkGeneratorTest::testGenerateTwice function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests whether rendering the same link twice works.
LinkGeneratorTest::testGenerateUrlWithQuotes function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the generate() method with a url containing double quotes.
LinkGeneratorTest::testGenerateWithAlterHook function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests altering the URL object using hook_link_alter().
LinkGeneratorTest::testGenerateWithHtml function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the link method with html.
LinkGeneratorTest::testGenerateXss function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the link method with a script tab.
LinkGeneratorTrait trait core/lib/Drupal/Core/Routing/LinkGeneratorTrait.php Wrapper methods for the Link Generator.
LinkGeneratorTrait.php file core/lib/Drupal/Core/Routing/LinkGeneratorTrait.php
LinkGeneratorTrait::$linkGenerator property core/lib/Drupal/Core/Routing/LinkGeneratorTrait.php The link generator.
LinkGeneratorTrait::getLinkGenerator function core/lib/Drupal/Core/Routing/LinkGeneratorTrait.php Returns the link generator.

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