Search for link

  1. Search 7.x for link
  2. Search 9.5.x for link
  3. Search 8.9.x for link
  4. Search 10.3.x for link
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Link class core/modules/jsonapi/src/JsonApiResource/Link.php Represents an RFC8288 based link.
Link class core/lib/Drupal/Core/Render/Element/Link.php Provides a link render element.
Link class core/lib/Drupal/Core/Link.php Defines an object that holds information about a link.

All search results

Title Object type File name Summary
LinkFormatter class core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php Plugin implementation of the 'link' formatter.
LinkFormatter.php file core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php
LinkFormatter::$pathValidator property core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php The path validator service.
LinkFormatter::buildUrl function core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php Builds the \Drupal\Core\Url object for a link field item.
LinkFormatter::create function core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php Creates an instance of the plugin.
LinkFormatter::defaultSettings function core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php Defines the default settings for this plugin.
LinkFormatter::settingsForm function core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php Returns a form to configure settings for the formatter.
LinkFormatter::settingsSummary function core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php Returns a short summary for the current formatter settings.
LinkFormatter::viewElements function core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php Builds a renderable array for a field value.
LinkFormatter::__construct function core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php Constructs a new LinkFormatter.
LinkFormatterTest class core/modules/link/tests/src/Unit/LinkFormatterTest.php Tests the Field Formatter for the link field type.
LinkFormatterTest.php file core/modules/link/tests/src/Unit/LinkFormatterTest.php
LinkFormatterTest::testFormatterLinkItem function core/modules/link/tests/src/Unit/LinkFormatterTest.php Tests when LinkItem::getUrl returns a functional URL.
LinkFormatterTest::testFormatterLinkItemUrlMalformed function core/modules/link/tests/src/Unit/LinkFormatterTest.php Tests when LinkItem::getUrl with malformed URL renders empty link.
LinkFormatterTest::testFormatterLinkItemUrlUnexpectedException function core/modules/link/tests/src/Unit/LinkFormatterTest.php Tests when LinkItem::getUrl throws an unexpected exception.
LinkGenerationTest class core/tests/Drupal/KernelTests/Core/Url/LinkGenerationTest.php Tests link generation with hooks.
LinkGenerationTest.php file core/tests/Drupal/KernelTests/Core/Url/LinkGenerationTest.php
LinkGenerationTest::$modules property core/tests/Drupal/KernelTests/Core/Url/LinkGenerationTest.php Modules to install.
LinkGenerationTest::testHookLinkAlter function core/tests/Drupal/KernelTests/Core/Url/LinkGenerationTest.php Tests how hook_link_alter() can affect escaping of the link text.
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::__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.
LinkGeneratorTest class core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php @coversDefaultClass \Drupal\Core\Utility\LinkGenerator
@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.

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