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 |
---|---|---|---|---|---|---|---|---|
LanguageServiceProvider | class | Drupal\language | core/ |
Overrides the language_manager service to point to language's module one. | ||||
LanguageSwitcherInterface | interface | Drupal\language | core/ |
Interface for language switcher classes. | 3 | 3 | ||
LanguageTypes | class | Drupal\language\Plugin\migrate\process | core/ |
Processes the array for the language types. | ||||
LanguageValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates whether a value is a valid language code. | ||||
LanManagementSystemInstaller | class | Composer\Installers | vendor/ |
|||||
LaravelInstaller | class | Composer\Installers | vendor/ |
|||||
Large | final class | SebastianBergmann\CodeCoverage\Test\TestSize | vendor/ |
@psalm-immutable | ||||
Large | final class | PHPUnit\Framework\Attributes | vendor/ |
@psalm-immutable | 1 | |||
Large | final class | PHPUnit\Framework\TestSize | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
LargeFileContent | class | org\bovigo\vfs\content | vendor/ |
File content implementation to mock large files. | 1 | |||
LastTimestamp | class | Drupal\comment\Plugin\views\field | core/ |
Field handler to display the timestamp of a comment with the count of comments. | ||||
LastValueAggregation | final class | OpenTelemetry\SDK\Metrics\Aggregation | vendor/ |
@implements AggregationInterface<LastValueSummary> | ||||
LastValueSummary | final class | OpenTelemetry\SDK\Metrics\Aggregation | vendor/ |
|||||
LateBindingLogger | class | OpenTelemetry\API\Logs | vendor/ |
|||||
LateBindingLoggerProvider | class | OpenTelemetry\API\Logs | vendor/ |
1 | ||||
LateBindingMeter | class | OpenTelemetry\API\Metrics | vendor/ |
@psalm-suppress InvalidArgument | ||||
LateBindingMeterProvider | class | OpenTelemetry\API\Metrics | vendor/ |
1 | ||||
LateBindingTextMapPropagator | final class | OpenTelemetry\SDK\Propagation | vendor/ |
@internal | 1 | |||
LateBindingTracer | class | OpenTelemetry\API\Trace | vendor/ |
|||||
LateBindingTracerProvider | class | OpenTelemetry\API\Trace | vendor/ |
Late binding providers are designed to be used by Instrumentation, while we do not have control over when all components (propagators, etc) which are registered through composer.autoload.files are actually loaded. It means that tracers etc are not… | 1 | |||
LateDataCollectorInterface | interface | Symfony\Component\HttpKernel\DataCollector | vendor/ |
LateDataCollectorInterface. | 8 | 3 | ||
LatestRevision | class | Drupal\views\Plugin\views\filter | core/ |
Filter to show only the latest revision of an entity. | ||||
LatestRevisionCheck | class | Drupal\content_moderation\Access | core/ |
Access check for the entity moderation tab. | 1 | 2 | ||
LatestTranslationAffectedRevision | class | Drupal\views\Plugin\views\filter | core/ |
Filter to show only the latest translation affected revision of an entity. | ||||
LavaLiteInstaller | class | Composer\Installers | vendor/ |
|||||
Layout | class | Drupal\Core\Layout\Annotation | core/ |
Defines a Layout annotation object. | ||||
Layout | class | Drupal\Core\Layout\Attribute | core/ |
Defines a Layout attribute object. | 2 | |||
LayoutBuilder | class | Drupal\layout_builder\Element | core/ |
Defines a render element for building the Layout Builder UI. | ||||
LayoutBuilderAccessCheck | class | Drupal\layout_builder\Access | core/ |
Provides an access check for the Layout Builder defaults. | 2 | |||
LayoutBuilderContextTrait | trait | Drupal\layout_builder\Context | core/ |
Provides a wrapper around getting contexts from a section storage object. | 6 | |||
LayoutBuilderController | class | Drupal\layout_builder\Controller | core/ |
Defines a controller to provide the Layout Builder admin UI. | ||||
LayoutBuilderDisableForm | class | Drupal\layout_builder\Form | core/ |
Disables Layout Builder for a given default. | ||||
LayoutBuilderEnabledInterface | interface | Drupal\layout_builder | core/ |
Provides methods for enabling and disabling Layout Builder. | 2 | 1 | ||
LayoutBuilderEntityFormTrait | trait | Drupal\layout_builder\Form | core/ |
Provides a trait for common methods used in Layout Builder entity forms. | 1 | |||
LayoutBuilderEntityViewDisplay | class | Drupal\layout_builder\Entity | core/ |
Provides an entity view display entity that has a layout. | 3 | |||
LayoutBuilderEntityViewDisplayForm | class | Drupal\layout_builder\Form | core/ |
Edit form for the LayoutBuilderEntityViewDisplay entity type. | 1 | |||
LayoutBuilderEntityViewDisplayStorage | class | Drupal\layout_builder\Entity | core/ |
Provides storage for entity view display entities that have layouts. | 1 | |||
LayoutBuilderEvents | final class | Drupal\layout_builder | core/ |
Defines events for the layout_builder module. | 3 | |||
LayoutBuilderExposeAllFieldBlocksHooks | class | Drupal\layout_builder_expose_all_field_blocks\Hook | core/ |
Hook implementations for layout_builder_expose_all_field_blocks. | ||||
LayoutBuilderHighlightTrait | trait | Drupal\layout_builder | core/ |
A trait for generating IDs used to highlight active UI elements. | 8 | |||
LayoutBuilderHooks | class | Drupal\layout_builder\Hook | core/ |
Hook implementations for layout_builder. | ||||
LayoutBuilderHtmlEntityFormController | class | Drupal\layout_builder\Controller | core/ |
Overrides the entity form controller service for layout builder operations. | 2 | |||
LayoutBuilderIsActiveCacheContext | class | Drupal\layout_builder\Cache | core/ |
Determines whether Layout Builder is active for a given entity type or not. | 2 | |||
LayoutBuilderLocalTaskDeriver | class | Drupal\layout_builder\Plugin\Derivative | core/ |
Provides local task definitions for the layout builder user interface. | 1 | |||
LayoutBuilderOverridableInterface | interface | Drupal\layout_builder | core/ |
Provides an interface for displays that could be overridable. | 2 | 1 | ||
LayoutBuilderOverridesPermissions | class | Drupal\layout_builder | core/ |
Provides dynamic permissions for Layout Builder overrides. | ||||
LayoutBuilderRoutes | class | Drupal\layout_builder\Routing | core/ |
Provides routes for the Layout Builder UI. | 2 | |||
LayoutBuilderRoutesTrait | trait | Drupal\layout_builder\Routing | core/ |
Provides a trait for building routes for a Layout Builder UI. | 2 | |||
LayoutBuilderSampleEntityGenerator | class | Drupal\layout_builder\Entity | core/ |
Generates a sample entity for use by the Layout Builder. | 2 | |||
LayoutBuilderServiceProvider | class | Drupal\layout_builder | core/ |
Sets the layout_builder.get_block_dependency_subscriber service definition. |