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
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[[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.
LinkHooks class core/modules/link/src/Hook/LinkHooks.php Hook implementations for link.
LinkHooks.php file core/modules/link/src/Hook/LinkHooks.php
LinkHooks::fieldTypeCategoryInfoAlter function core/modules/link/src/Hook/LinkHooks.php Implements hook_field_type_category_info_alter().
LinkHooks::help function core/modules/link/src/Hook/LinkHooks.php Implements hook_help().
LinkHooks::theme function core/modules/link/src/Hook/LinkHooks.php Implements hook_theme().
LinkInputValuesTraits trait core/modules/link/tests/src/Traits/LinkInputValuesTraits.php Provides test values for the Link field.
LinkInputValuesTraits.php file core/modules/link/tests/src/Traits/LinkInputValuesTraits.php
LinkInputValuesTraits::getLinkInputValues function core/modules/link/tests/src/Traits/LinkInputValuesTraits.php Link field values use for test.
LinkItem class core/modules/link/src/Plugin/Field/FieldType/LinkItem.php Plugin implementation of the 'link' field type.
LinkItem.php file core/modules/link/src/Plugin/Field/FieldType/LinkItem.php
LinkItem::defaultFieldSettings function core/modules/link/src/Plugin/Field/FieldType/LinkItem.php Defines the field-level settings for this plugin.
LinkItem::fieldSettingsForm function core/modules/link/src/Plugin/Field/FieldType/LinkItem.php Returns a form for the field-level settings.
LinkItem::generateSampleValue function core/modules/link/src/Plugin/Field/FieldType/LinkItem.php Generates placeholder field values.
LinkItem::getTitle function core/modules/link/src/Plugin/Field/FieldType/LinkItem.php Gets the link title.

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