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. |
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. |
LinkItem::getUrl |
function |
core/modules/link/src/Plugin/Field/FieldType/LinkItem.php |
Gets the URL object. |
LinkItem::isEmpty |
function |
core/modules/link/src/Plugin/Field/FieldType/LinkItem.php |
Determines whether the data structure is empty. |
LinkItem::isExternal |
function |
core/modules/link/src/Plugin/Field/FieldType/LinkItem.php |
Determines if a link is external. |
LinkItem::mainPropertyName |
function |
core/modules/link/src/Plugin/Field/FieldType/LinkItem.php |
Returns the name of the main property, if any. |
LinkItem::propertyDefinitions |
function |
core/modules/link/src/Plugin/Field/FieldType/LinkItem.php |
Defines field item properties. |
LinkItem::schema |
function |
core/modules/link/src/Plugin/Field/FieldType/LinkItem.php |
Returns the schema for the field. |
LinkItem::setValue |
function |
core/modules/link/src/Plugin/Field/FieldType/LinkItem.php |
Overrides \Drupal\Core\TypedData\TypedData::setValue(). |
LinkItemInterface |
interface |
core/modules/link/src/LinkItemInterface.php |
Defines an interface for the link field item. |
LinkItemInterface.php |
file |
core/modules/link/src/LinkItemInterface.php |
|
LinkItemInterface::getTitle |
function |
core/modules/link/src/LinkItemInterface.php |
Gets the link title. |
LinkItemInterface::getUrl |
function |
core/modules/link/src/LinkItemInterface.php |
Gets the URL object. |
LinkItemInterface::isExternal |
function |
core/modules/link/src/LinkItemInterface.php |
Determines if a link is external. |
LinkItemInterface::LINK_EXTERNAL |
constant |
core/modules/link/src/LinkItemInterface.php |
Specifies whether the field supports only external URLs. |
LinkItemInterface::LINK_GENERIC |
constant |
core/modules/link/src/LinkItemInterface.php |
Specifies whether the field supports both internal and external URLs. |
LinkItemInterface::LINK_INTERNAL |
constant |
core/modules/link/src/LinkItemInterface.php |
Specifies whether the field supports only internal URLs. |
LinkItemSerializationTest |
class |
core/modules/link/tests/src/Kernel/LinkItemSerializationTest.php |
Tests link field serialization. |
LinkItemSerializationTest.php |
file |
core/modules/link/tests/src/Kernel/LinkItemSerializationTest.php |
|
LinkItemSerializationTest::$modules |
property |
core/modules/link/tests/src/Kernel/LinkItemSerializationTest.php |
Modules to install. |
LinkItemSerializationTest::$serializer |
property |
core/modules/link/tests/src/Kernel/LinkItemSerializationTest.php |
The serializer service. |
LinkItemSerializationTest::setUp |
function |
core/modules/link/tests/src/Kernel/LinkItemSerializationTest.php |
Set the default field storage backend for fields created during tests. |
LinkItemSerializationTest::testLinkDeserialization |
function |
core/modules/link/tests/src/Kernel/LinkItemSerializationTest.php |
Tests the deserialization. |