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 |
---|---|---|---|---|---|---|---|---|
ListParser | class | OpenTelemetry\SDK\Common\Configuration\Parser | vendor/ |
1 | ||||
ListPlugin | class | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
CKEditor 5 List plugin. | 1 | |||
ListShape | final class | phpDocumentor\Reflection\PseudoTypes | vendor/ |
@psalm-immutable | 1 | |||
ListShapeItem | final class | phpDocumentor\Reflection\PseudoTypes | vendor/ |
1 | ||||
ListStringItem | class | Drupal\options\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'list_string' field type. | ||||
ListTestsAsTextCommand | final class | PHPUnit\TextUI\Command | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
ListTestsAsXmlCommand | final class | PHPUnit\TextUI\Command | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
ListTestSuitesCommand | final class | PHPUnit\TextUI\Command | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
ListValue | class | Google\Protobuf | vendor/ |
`ListValue` is a wrapper around a repeated field of values. The JSON representation for `ListValue` is JSON array. | 1 | |||
List_ | final class | phpDocumentor\Reflection\PseudoTypes | vendor/ |
Value Object representing the type 'list'. | 1 | |||
List_ | class | PhpParser\Node\Expr | vendor/ |
1 | ||||
Literal | abstract class | Peast\Syntax\Node | vendor/ |
Abstract class for literals. | 6 | |||
LiteralString | final class | phpDocumentor\Reflection\PseudoTypes | vendor/ |
Value Object representing the type 'string'. | 1 | |||
LithiumInstaller | class | Composer\Installers | vendor/ |
|||||
Loaded | final class | PHPUnit\Event\TestSuite | vendor/ |
@psalm-immutable | 1 | |||
LoadedFromFileConfiguration | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
LoadedSubscriber | interface | PHPUnit\Event\TestSuite | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
Loader | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
Loader | final class | PHPUnit\Util\Xml | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 5 | |||
LoaderChain | class | Symfony\Component\Serializer\Mapping\Loader | vendor/ |
Calls multiple {@link LoaderInterface} instances in a chain. | ||||
LoaderChain | class | Symfony\Component\Validator\Mapping\Loader | vendor/ |
Loads validation metadata from multiple {@link LoaderInterface} instances. | 1 | 1 | ||
LoaderError | class | Twig\Error | vendor/ |
Exception thrown when an error occurs during template loading. | 10 | |||
LoaderInterface | interface | Symfony\Component\Serializer\Mapping\Loader | vendor/ |
Loads {@link ClassMetadataInterface}. | 3 | 1 | ||
LoaderInterface | interface | Composer\Package\Loader | vendor/ |
Defines a loader that takes an array to create package instances | 2 | 2 | ||
LoaderInterface | interface | Symfony\Component\Validator\Mapping\Loader | vendor/ |
Loads validation metadata into {@link ClassMetadata} instances. | 5 | 2 | ||
LoaderInterface | interface | Twig\Loader | vendor/ |
Interface all loaders must implement. | 5 | 4 | ||
LoadIncludeBase | abstract class | mglaman\PHPStanDrupal\Rules\Drupal | vendor/ |
@template TNodeType of Node @implements Rule<TNodeType> | 2 | |||
LoadIncludes | class | mglaman\PHPStanDrupal\Rules\Drupal | vendor/ |
@extends LoadIncludeBase<Node\Expr\MethodCall> | ||||
Local | class | WebDriver\Storage | vendor/ |
WebDriver\Storage\Local class | ||||
Local | class | Drupal\Core\FileTransfer | core/ |
Defines the local connection class for copying files as the httpd user. | 1 | |||
LocalActionDefault | class | Drupal\Core\Menu | core/ |
Provides a default implementation for local action plugins. | 3 | 3 | 1 | |
LocalActionInterface | interface | Drupal\Core\Menu | core/ |
Defines an interface for menu local actions. | 1 | |||
LocalActionManager | class | Drupal\Core\Menu | core/ |
Provides the default local action manager using YML as primary definition. | ||||
LocalActionManagerInterface | interface | Drupal\Core\Menu | core/ |
Manages discovery and instantiation of menu local action plugins. | 1 | 2 | ||
LocalActionsBlock | class | Drupal\Core\Menu\Plugin\Block | core/ |
Provides a block to display the local actions. | ||||
LocalAwareRedirectResponseTrait | trait | Drupal\Core\Routing | core/ |
Provides a trait which ensures that a URL is safe to redirect to. | ||||
LocalComment | class | Egulias\EmailValidator\Parser\CommentStrategy | vendor/ |
1 | ||||
Locale | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is a valid locale (e.g. fr, fr_FR, etc.). | ||||
LocaleAwareInterface | interface | Symfony\Contracts\Translation | vendor/ |
1 | 3 | |||
LocaleAwareListener | class | Symfony\Component\HttpKernel\EventListener | vendor/ |
Pass the current locale to the provided services. | ||||
LocaleConfigManager | class | Drupal\locale | core/ |
Manages configuration supported in part by interface translation. | 2 | 2 | ||
LocaleConfigSubscriber | class | Drupal\locale | core/ |
Updates strings translation when configuration translations change. | 2 | |||
LocaleController | class | Drupal\locale\Controller | core/ |
Return response for manual check translations. | ||||
LocaleDefaultConfigStorage | class | Drupal\locale | core/ |
Provides access to default configuration for locale integration. | 2 | |||
LocaleEvent | class | Drupal\locale | core/ |
Defines a Locale event. | 1 | |||
LocaleEvents | final class | Drupal\locale | core/ |
Defines events for locale translation. | 2 | |||
LocaleHooks | class | Drupal\locale\Hook | core/ |
Hook implementations for locale. | ||||
LocaleListener | class | Symfony\Component\HttpKernel\EventListener | vendor/ |
Initializes the locale based on the current request. | ||||
LocaleLookup | class | Drupal\locale | core/ |
A cache collector to allow for dynamic building of the locale cache. | ||||
LocaleOptions | final class | PhpTuf\ComposerStager\Internal\Translation\Service | vendor/ |
@package Translation | 2 |