Classes, traits, and interfaces - 10.3.x - 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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
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/ |
@coversDefaultClass \Drupal\link\Plugin\Validation\Constraint\LinkExternalProtocolsConstraintValidator[[api-linebreak]] @group Link | ||||
LinkField | class | Drupal\link\Plugin\migrate\field\d6 | core/ |
#[MigrateField(id: 'link', core: [ 6, ], type_map: [ 'link' => 'link', ], source_module: 'link', destination_module: 'link')] | 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/ |
@coversDefaultClass \Drupal\link\Plugin\migrate\field\d6\LinkField[[api-linebreak]] @group link | ||||
LinkFieldTest | class | Drupal\Tests\link\Kernel\Plugin\migrate\field\d7 | core/ |
@coversDefaultClass \Drupal\link\Plugin\migrate\field\d7\LinkField[[api-linebreak]] @group link | ||||
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. | ||||
LinkFormatter | class | Drupal\link\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'link' formatter. | 1 | 1 | ||
LinkFormatterTest | class | Drupal\Tests\link\Unit | core/ |
Tests the Field Formatter for the link field type. | ||||
LinkGenerationTest | class | Drupal\KernelTests\Core\Url | core/ |
Tests link generation with hooks. | ||||
LinkGenerator | class | Drupal\Core\Utility | core/ |
Provides a class which generates a link with route names and parameters. | 2 | 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/ |
@coversDefaultClass \Drupal\Core\Utility\LinkGenerator[[api-linebreak]] @group Utility | ||||
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 | 15 | ||
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/ |
@coversDefaultClass \Drupal\link\Plugin\Validation\Constraint\LinkNotExistingInternalConstraintValidator[[api-linebreak]] @group Link | ||||
LinkOptions | 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/ |
@coversDefaultClass \Drupal\comment\Plugin\views\field\LinkReply[[api-linebreak]] @group comment | ||||
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. | ||||
LinksetController | final class | Drupal\system\Controller | core/ |
Linkset controller. | ||||
LinksetControllerMultiLingualTest | final class | Drupal\Tests\system\Functional\Menu | core/ |
Tests the behavior of the linkset controller in multilingual setup. | ||||
LinksetControllerTest | final class | Drupal\Tests\system\Functional\Menu | core/ |
Tests the behavior of the linkset controller. | ||||
LinksetControllerTestBase | abstract class | Drupal\Tests\system\Functional\Menu | core/ |
A base class for implementing LinksetController tests. | 2 | |||
LinkTest | class | Drupal\Tests\jsonapi\Unit\JsonApiResource | core/ |
@coversDefaultClass \Drupal\jsonapi\JsonApiResource\Link[[api-linebreak]] @group jsonapi | ||||
LinkTypeConstraint | class | Drupal\link\Plugin\Validation\Constraint | core/ |
Validation constraint for links receiving data allowed by its settings. | ||||
LinkTypeConstraintValidator | class | Drupal\link\Plugin\Validation\Constraint | core/ |
Constraint validator for links receiving data allowed by its settings. | ||||
LinkUri | class | Drupal\menu_link_content\Plugin\migrate\process | core/ |
Generates an internal URI from the source value. | 1 | |||
LinkUriTest | class | Drupal\Tests\menu_link_content\Kernel\Plugin\migrate\process | core/ |
Tests \Drupal\menu_link_content\Plugin\migrate\process\LinkUri. | ||||
LinkViewsTokensTest | class | Drupal\Tests\link\Functional\Views | core/ |
Tests the views integration for link tokens. | ||||
LinkWidget | class | Drupal\link\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'link' widget. | ||||
ListCacheBinsPass | class | Drupal\Core\Cache | core/ |
Adds cache_bins parameter to the container. | 1 | |||
ListDataDefinition | class | Drupal\Core\TypedData | core/ |
A typed data definition class for defining lists. | 3 | 7 | ||
ListDataDefinitionInterface | interface | Drupal\Core\TypedData | core/ |
Interface for data definitions of lists. | 2 | 3 | ||
ListElement | class | Drupal\config_translation\FormElement | core/ |
Defines the list element for the configuration translation interface. | ||||
ListField | class | Drupal\options\Plugin\views\filter | core/ |
Filter handler which uses list-fields as options. | ||||
ListField | class | Drupal\options\Plugin\migrate\field\d7 | core/ |
#[MigrateField(id: 'list', core: [ 7, ], type_map: [ 'list_boolean' => 'boolean', 'list_integer' => 'list_integer', 'list_text' => 'list_string', 'list_float' => 'list_float', ], source_module: 'list', destination_module: 'options')] |
Pagination
- Previous page
- Page 103
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.