Classes, traits, and interfaces - main - drupal
Introduction to classes
A lot of the PHP code in Drupal is object oriented (OO), making use of PHP classes, interfaces, and traits. See the Objected-oriented programming conventions for more information.
See also
Objected-oriented programming conventions
File
-
core/
core.api.php, line 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| LinkApprove | class | Drupal\comment\Plugin\views\field | core/ |
Provides a comment approve link. | 1 | |||
| LinkApproveTest | class | Drupal\Tests\comment\Unit\Plugin\views\field | core/ |
Tests Drupal\comment\Plugin\views\field\LinkApprove. | ||||
| LinkBase | abstract class | Drupal\views\Plugin\views\field | core/ |
Field handler to present a link to an entity. | 5 | 5 | ||
| LinkBaseTest | class | Drupal\Tests\views\Unit\Plugin\views\field | core/ |
Tests Drupal\views\Plugin\views\field\EntityLink. | ||||
| LinkCollection | final class | Drupal\jsonapi\JsonApiResource | core/ |
Contains a set of JSON:API Link objects. | 9 | |||
| LinkCollectionNormalizer | class | Drupal\jsonapi\Normalizer | core/ |
Normalizes a LinkCollection object. | 1 | 2 | ||
| LinkCollectionNormalizerTest | class | Drupal\Tests\jsonapi\Kernel\Normalizer | core/ |
Tests Drupal\jsonapi\Normalizer\LinkCollectionNormalizer. | ||||
| LinkExternalProtocolsConstraint | class | Drupal\link\Plugin\Validation\Constraint | core/ |
Defines a protocol validation constraint for links to external URLs. | 1 | |||
| LinkExternalProtocolsConstraintValidator | class | Drupal\link\Plugin\Validation\Constraint | core/ |
Validates the LinkExternalProtocols constraint. | 1 | |||
| LinkExternalProtocolsConstraintValidatorTest | class | Drupal\Tests\link\Unit\Plugin\Validation\Constraint | core/ |
Tests Drupal\link\Plugin\Validation\Constraint\LinkExternalProtocolsConstraintValidator. | ||||
| LinkField | class | Drupal\link\Plugin\migrate\field\d6 | core/ |
Migrate field plugin for Drupal 6 link fields. | 1 | 2 | ||
| LinkField | class | Drupal\link\Plugin\migrate\field\d7 | core/ |
MigrateField Plugin for Drupal 7 link fields. | 1 | |||
| LinkFieldFormStatesTest | class | Drupal\Tests\link\FunctionalJavascript | core/ |
Tests link field form states functionality. | ||||
| LinkFieldTest | class | Drupal\Tests\link\Unit\Plugin\migrate\field\d6 | core/ |
Tests Drupal\link\Plugin\migrate\field\d6\LinkField. | ||||
| LinkFieldTest | class | Drupal\Tests\link\Kernel\Plugin\migrate\field\d7 | core/ |
Tests Drupal\link\Plugin\migrate\field\d7\LinkField. | ||||
| LinkFieldTest | class | Drupal\Tests\link\Functional | core/ |
Tests link field widgets and formatters. | ||||
| LinkFieldUITest | class | Drupal\Tests\link\Functional | core/ |
Tests link field UI functionality. | ||||
| LinkFieldWidgetTest | class | Drupal\Tests\link\Kernel | core/ |
Tests link field widgets. | ||||
| LinkFormatter | class | Drupal\link\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'link' formatter. | 1 | 1 | ||
| LinkFormatterDisplayTest | class | Drupal\Tests\link\Kernel | core/ |
Tests the default 'link' field formatter. | ||||
| LinkFormatterTest | class | Drupal\Tests\link\Unit | core/ |
Tests the Field Formatter for the link field type. | ||||
| LinkFormatterTest | class | Drupal\Tests\link\Kernel | core/ |
Tests the Field Formatter for the link field type. | ||||
| LinkGenerationTest | class | Drupal\KernelTests\Core\Url | core/ |
Tests link generation with hooks. | ||||
| LinkGenerationTestHooks | class | Drupal\link_generation_test\Hook | core/ |
Hook implementations for link_generation_test. | ||||
| LinkGenerator | class | Drupal\Core\Utility | core/ |
Provides a class which generates a link with route names and parameters. | 3 | 2 | ||
| LinkGeneratorInterface | interface | Drupal\Core\Utility | core/ |
Defines an interface for generating links from route names and parameters. | 1 | 5 | ||
| LinkGeneratorTest | class | Drupal\Tests\Core\Utility | core/ |
Tests Drupal\Core\Utility\LinkGenerator. | ||||
| LinkHooks | class | Drupal\link\Hook | core/ |
Hook implementations for link. | ||||
| LinkInputValuesTraits | trait | Drupal\Tests\link\Traits | core/ |
Provides test values for the Link field. | 2 | |||
| LinkItem | class | Drupal\link\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'link' field type. | 1 | |||
| LinkItemInterface | interface | Drupal\link | core/ |
Defines an interface for the link field item. | 1 | 27 | ||
| LinkItemSerializationTest | class | Drupal\Tests\link\Kernel | core/ |
Tests link field serialization. | ||||
| LinkItemTest | class | Drupal\Tests\link\Kernel | core/ |
Tests the new entity API for the link field type. | ||||
| LinkItemUrlValidationTest | class | Drupal\Tests\link\Kernel | core/ |
Tests link field validation. | ||||
| LinkNotExistingInternalConstraint | class | Drupal\link\Plugin\Validation\Constraint | core/ |
Defines a protocol validation constraint for links to broken internal URLs. | 1 | |||
| LinkNotExistingInternalConstraintValidator | class | Drupal\link\Plugin\Validation\Constraint | core/ |
Validates the LinkNotExistingInternal constraint. | 1 | |||
| LinkNotExistingInternalConstraintValidatorTest | class | Drupal\Tests\link\Unit\Plugin\Validation\Constraint | core/ |
Tests Drupal\link\Plugin\Validation\Constraint\LinkNotExistingInternalConstraintValidator. | ||||
| LinkOptions | class | Drupal\migrate\Plugin\migrate\process | core/ |
Converts links options. | ||||
| LinkOptions | in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\migrate\Plugin\migrate\process\LinkOptions instead. Examples: |
class | Drupal\menu_link_content\Plugin\migrate\process | core/ |
Converts links options. | |||
| LinkRelationsTest | class | Drupal\KernelTests\Core\Http | core/ |
Tests link relationships in Drupal. | ||||
| LinkRelationType | class | Drupal\Core\Http | core/ |
Defines a single link relationship type. | 1 | |||
| LinkRelationTypeInterface | interface | Drupal\Core\Http | core/ |
Defines a single link relation type. | 1 | |||
| LinkRelationTypeManager | class | Drupal\Core\Http | core/ |
Provides a default plugin manager for link relation types. | 2 | |||
| LinkReply | class | Drupal\comment\Plugin\views\field | core/ |
Field handler to present a link to reply to a comment. | 1 | |||
| LinkReplyTest | class | Drupal\Tests\comment\Unit\Plugin\views\field | core/ |
Tests Drupal\comment\Plugin\views\field\LinkReply. | ||||
| LinkResolvableUriComputed | class | Drupal\link\Plugin\DataType | core/ |
Defines a data type for a Link Resolvable URI. | ||||
| Links | abstract class | Drupal\views\Plugin\views\field | core/ |
An abstract handler which provides a collection of links. | 1 | |||
| LinkSeparateFormatter | class | Drupal\link\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'link_separate' formatter. | ||||
| LinkSeparateFormatterDisplayTest | class | Drupal\Tests\link\Kernel | core/ |
Tests the 'link_separate' field formatter. | ||||
| LinksetController | final class | Drupal\system\Controller | core/ |
Linkset controller. |
Pagination
- Previous page
- Page 114
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.