Search for %s

  1. Search 7.x for %s
  2. Search 9.5.x for %s
  3. Search 8.9.x for %s
  4. Search 10.3.x for %s
  5. Search 11.x for %s
  6. Other projects
Title Object type File name Summary
LinkFormatter::viewElements function core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php @phpstan-param \Drupal\Core\Field\FieldItemListInterface<\Drupal\link\LinkItemInterface> $items
LinkFormatter::__construct function core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php Constructs a new LinkFormatter.
LinkFormatterDisplayTest class core/modules/link/tests/src/Kernel/LinkFormatterDisplayTest.php Tests the default 'link' field formatter.
LinkFormatterDisplayTest.php file core/modules/link/tests/src/Kernel/LinkFormatterDisplayTest.php
LinkFormatterDisplayTest::$modules property core/modules/link/tests/src/Kernel/LinkFormatterDisplayTest.php Modules to install.
LinkFormatterDisplayTest::getTestCases function core/modules/link/tests/src/Kernel/LinkFormatterDisplayTest.php
LinkFormatterDisplayTest::setUp function core/modules/link/tests/src/Kernel/LinkFormatterDisplayTest.php Set the default field storage backend for fields created during tests.
LinkFormatterDisplayTest::testLinkFormatter function core/modules/link/tests/src/Kernel/LinkFormatterDisplayTest.php Tests that links are rendered correctly.
LinkFormatterDisplayTest::testNullLinkOptions function core/modules/link/tests/src/Kernel/LinkFormatterDisplayTest.php Tests that links with NULL options are rendered correctly.
LinkFormatterTest class core/modules/link/tests/src/Unit/LinkFormatterTest.php Tests the Field Formatter for the link field type.
LinkFormatterTest class core/modules/link/tests/src/Kernel/LinkFormatterTest.php Tests the Field Formatter for the link field type.
LinkFormatterTest.php file core/modules/link/tests/src/Unit/LinkFormatterTest.php
LinkFormatterTest.php file core/modules/link/tests/src/Kernel/LinkFormatterTest.php
LinkFormatterTest::$bundle property core/modules/link/tests/src/Kernel/LinkFormatterTest.php The bundle used in this test.
LinkFormatterTest::$entity property core/modules/link/tests/src/Kernel/LinkFormatterTest.php The entity to be tested.
LinkFormatterTest::$entityType property core/modules/link/tests/src/Kernel/LinkFormatterTest.php The entity type used in this test.
LinkFormatterTest::$fieldName property core/modules/link/tests/src/Kernel/LinkFormatterTest.php The name of the field used in this test.
LinkFormatterTest::$modules property core/modules/link/tests/src/Kernel/LinkFormatterTest.php Modules to install.
LinkFormatterTest::providerLinkFormatter function core/modules/link/tests/src/Kernel/LinkFormatterTest.php Data provider for ::testLinkFormatter.
LinkFormatterTest::setUp function core/modules/link/tests/src/Kernel/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.
LinkFormatterTest::testLinkFormatter function core/modules/link/tests/src/Kernel/LinkFormatterTest.php Tests the link formatters.
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::linkAlter function core/tests/Drupal/KernelTests/Core/Url/LinkGenerationTest.php Implements hook_link_alter().
LinkGenerationTest::testHookLinkAlter function core/tests/Drupal/KernelTests/Core/Url/LinkGenerationTest.php Tests how hook_link_alter() can affect escaping of the link text.
LinkGenerationTestHooks class core/modules/system/tests/modules/link_generation_test/src/Hook/LinkGenerationTestHooks.php Hook implementations for link_generation_test.
LinkGenerationTestHooks.php file core/modules/system/tests/modules/link_generation_test/src/Hook/LinkGenerationTestHooks.php
LinkGenerationTestHooks::linkAlter function core/modules/system/tests/modules/link_generation_test/src/Hook/LinkGenerationTestHooks.php Implements hook_link_alter().
LinkGenerator::__construct function core/lib/Drupal/Core/Utility/LinkGenerator.php Constructs a LinkGenerator instance.
LinkGeneratorTest class core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests Drupal\Core\Utility\LinkGenerator.
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 module handler.
LinkGeneratorTest::$urlGenerator property core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php The 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::setUpMockModuleHandler function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Reinitializes the module handler as a mock object.
LinkGeneratorTest::setUpMockUrlGenerator function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Reinitializes the URL generator as a mock object.
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.

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