Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
Primary tabs
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 |
---|---|---|---|---|---|---|---|---|
LinkAccessConstraint | class | Drupal\link\Plugin\Validation\Constraint | core/ |
Defines an access validation constraint for links. | ||||
LinkAccessConstraintValidator | class | Drupal\link\Plugin\Validation\Constraint | core/ |
Validates the LinkAccess constraint. | ||||
LinkApprove | class | Drupal\comment\Plugin\views\field | core/ |
Provides a comment approve link. | ||||
LinkBase | abstract class | Drupal\views\Plugin\views\field | core/ |
Field handler to present a link to an entity. | 5 | 4 | ||
LinkCollection | final class | Drupal\jsonapi\JsonApiResource | core/ |
Contains a set of JSON:API Link objects. | 6 | |||
LinkCollectionNormalizer | class | Drupal\jsonapi\Normalizer | core/ |
Normalizes a LinkCollection object. | 2 | |||
LinkExternalProtocolsConstraint | class | Drupal\link\Plugin\Validation\Constraint | core/ |
Defines a protocol validation constraint for links to external URLs. | ||||
LinkExternalProtocolsConstraintValidator | class | Drupal\link\Plugin\Validation\Constraint | core/ |
Validates the LinkExternalProtocols constraint. | ||||
LinkField | class | Drupal\link\Plugin\migrate\field\d6 | core/ |
1 | 1 | |||
LinkField | class | Drupal\link\Plugin\migrate\field\d7 | core/ |
MigrateField Plugin for Drupal 7 link fields. | ||||
LinkFormatter | class | Drupal\link\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'link' formatter. | 1 | |||
LinkGenerator | class | Drupal\Core\Utility | core/ |
Provides a class which generates a link with route names and parameters. | ||||
LinkGeneratorInterface | interface | Drupal\Core\Utility | core/ |
Defines an interface for generating links from route names and parameters. | 1 | 3 | ||
LinkHooks | class | Drupal\link\Hook | core/ |
Hook implementations for link. | ||||
LinkInterface | interface | OpenTelemetry\SDK\Trace | vendor/ |
1 | 1 | |||
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 | 6 | ||
LinkNotExistingInternalConstraint | class | Drupal\link\Plugin\Validation\Constraint | core/ |
Defines a protocol validation constraint for links to broken internal URLs. | ||||
LinkNotExistingInternalConstraintValidator | class | Drupal\link\Plugin\Validation\Constraint | core/ |
Validates the LinkNotExistingInternal constraint. | ||||
LinkOptions | class | Drupal\menu_link_content\Plugin\migrate\process | core/ |
Converts links options. | ||||
LinkRelationType | class | Drupal\Core\Http | core/ |
Defines a single link relationship type. | ||||
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. | ||||
LinkReply | class | Drupal\comment\Plugin\views\field | core/ |
Field handler to present a link to reply to a 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. | ||||
LinkStub | class | Symfony\Component\VarDumper\Caster | vendor/ |
Represents a file or a URL. | ||||
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. | ||||
LinkWidget | class | Drupal\link\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'link' widget. | ||||
LintCommand | class | Symfony\Component\Yaml\Command | vendor/ |
Validates YAML files syntax and outputs encountered errors. | ||||
Linter | class | Seld\PharUtils | vendor/ |
1 | ||||
ListCacheBinsPass | class | Drupal\Core\Cache | core/ |
Adds cache_bins parameter to the container. | 1 | |||
ListCommand | class | Symfony\Component\Console\Command | vendor/ |
ListCommand displays the list of all available commands for the application. | 1 | |||
ListDataDefinition | class | Drupal\Core\TypedData | core/ |
A typed data definition class for defining lists. | 3 | 5 | ||
ListDataDefinitionInterface | interface | Drupal\Core\TypedData | core/ |
Interface for data definitions of lists. | 2 | 1 | ||
ListElement | class | Drupal\config_translation\FormElement | core/ |
Defines the list element for the configuration translation interface. | ||||
ListenerProviderInterface | interface | Psr\EventDispatcher | vendor/ |
Mapper from an event to the listeners that are applicable to that event. | ||||
ListField | class | Drupal\options\Plugin\migrate\field\d7 | core/ |
|||||
ListField | class | Drupal\options\Plugin\views\filter | core/ |
Filter handler which uses list-fields as options. | ||||
ListFloatItem | class | Drupal\options\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'list_float' field type. | ||||
ListGroupsCommand | final class | PHPUnit\TextUI\Command | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
ListingEmpty | class | Drupal\node\Plugin\views\area | core/ |
Defines an area plugin to display a node/add link. | ||||
ListingEmpty | class | Drupal\block_content\Plugin\views\area | core/ |
Defines an area plugin to display a block add link. | ||||
ListIntegerItem | class | Drupal\options\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'list_integer' field type. | ||||
ListInterface | interface | Drupal\Core\TypedData | core/ |
Interface for a list of typed data. | 2 | 6 | ||
ListItemBase | abstract class | Drupal\options\Plugin\Field\FieldType | core/ |
Plugin base class inherited by the options field types. | 3 | |||
ListNormalizer | class | Drupal\serialization\Normalizer | core/ |
Converts list objects to arrays. | 1 | 2 |