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 |
---|---|---|---|---|---|---|---|---|
LayoutBuilderUiCacheContext | class | Drupal\layout_builder\Cache | core/ |
Determines if an entity is being viewed in the Layout Builder UI. | 2 | |||
LayoutBuilderWidget | class | Drupal\layout_builder\Plugin\Field\FieldWidget | core/ |
A widget to display the layout form. | ||||
LayoutDefault | class | Drupal\Core\Layout | core/ |
Provides a default class for Layout plugins. | 3 | 5 | ||
LayoutDefinition | class | Drupal\Core\Layout | core/ |
Provides an implementation of a layout definition and its metadata. | 2 | |||
LayoutDiscoveryHooks | class | Drupal\layout_discovery\Hook | core/ |
Hook implementations for layout_discovery. | ||||
LayoutEntityDisplayInterface | interface | Drupal\layout_builder\Entity | core/ |
Provides an interface for entity displays that have layout. | 1 | 5 | ||
LayoutEntityDisplayNormalizer | class | Drupal\layout_builder\Normalizer | core/ |
Normalizes/denormalizes LayoutEntityDisplay objects into an array structure. | 1 | |||
LayoutEntityHelperTrait | trait | Drupal\layout_builder | core/ |
Methods to help with entities using the layout builder. | 2 | |||
LayoutForm | final class | Drupal\navigation\Form | core/ |
Defines a form for configuring navigation blocks. | 1 | |||
LayoutInterface | interface | Drupal\Core\Layout | core/ |
Provides an interface for static Layout plugins. | 1 | 3 | 1 | |
LayoutPluginManager | class | Drupal\Core\Layout | core/ |
Provides a plugin manager for layouts. | 2 | |||
LayoutPluginManagerInterface | interface | Drupal\Core\Layout | core/ |
Provides the interface for a plugin manager of layouts. | 1 | 4 | ||
LayoutPreviewAccessAllowed | class | Drupal\layout_builder\Access | core/ |
Accessible class to allow access for inline blocks in the Layout Builder. | 1 | |||
LayoutRebuildConfirmFormBase | abstract class | Drupal\layout_builder\Form | core/ |
Provides a base class for confirmation forms that rebuild the Layout Builder. | 2 | |||
LayoutRebuildTrait | trait | Drupal\layout_builder\Controller | core/ |
Provides AJAX responses to rebuild the Layout Builder. | 4 | |||
LayoutSectionItem | class | Drupal\layout_builder\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'layout_section' field type. | ||||
LayoutSectionItemList | class | Drupal\layout_builder\Field | core/ |
Defines an item list class for layout section fields. | 1 | |||
LayoutSectionStorageParamConverter | class | Drupal\layout_builder\Routing | core/ |
Loads the section storage from the routing defaults. | 2 | |||
LayoutTempstoreRepository | class | Drupal\layout_builder | core/ |
Provides a mechanism for loading layouts from tempstore. | 2 | |||
LayoutTempstoreRepositoryInterface | interface | Drupal\layout_builder | core/ |
Provides an interface for loading layouts from tempstore. | 1 | 14 | ||
LayoutTempstoreRouteEnhancer | class | Drupal\layout_builder\Routing | core/ |
Loads the section storage from the layout tempstore. | 2 | |||
Lazy | class | Symfony\Component\DependencyInjection\Attribute | vendor/ |
2 | ||||
LazyBuilders | final class | Drupal\announcements_feed | core/ |
Defines a class for lazy building render arrays. | 2 | |||
LazyClosure | class | Symfony\Component\DependencyInjection\Argument | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 2 | |||
LazyCommand | final class | Symfony\Component\Console\Command | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 2 | |||
LazyContextRepository | class | Drupal\Core\Plugin\Context | core/ |
Provides a context repository which uses context provider services. | ||||
LazyDeprecatedScopeResolverProvider | final class | PHPStan\DependencyInjection | vendor/ |
|||||
LazyDouble | class | Prophecy\Doubler | vendor/ |
Lazy double. Gives simple interface to describe double before creating it. | 2 | |||
LazyGhostTrait | trait | Symfony\Component\VarExporter | vendor/ |
|||||
LazyIterator | class | Symfony\Component\Finder\Iterator | vendor/ |
@author Jérémy Derussé <jeremy@derusse.com> | 1 | |||
LazyLoadingFragmentHandler | class | Symfony\Component\HttpKernel\DependencyInjection | vendor/ |
Lazily loads fragment renderers from the dependency injection container. | ||||
LazyLoadingMetadataFactory | class | Symfony\Component\Validator\Mapping\Factory | vendor/ |
Creates new {@link ClassMetadataInterface} instances. | 2 | |||
LazyObjectInterface | interface | Symfony\Component\VarExporter | vendor/ |
2 | ||||
LazyObjectRegistry | class | Symfony\Component\VarExporter\Internal | vendor/ |
Stores the state of lazy objects and caches related reflection information. | 3 | |||
LazyObjectState | class | Symfony\Component\VarExporter\Internal | vendor/ |
Keeps the state of lazy objects. | 3 | |||
LazyOpenStream | final class | GuzzleHttp\Psr7 | vendor/ |
Lazily reads or writes to a file that is opened only after an IO operation take place on the stream. | 1 | |||
LazyPluginCollection | abstract class | Drupal\Component\Plugin | core/ |
Defines an object which stores multiple plugin instances to lazy load them. | 2 | 2 | ||
LazyProperty | class | Symfony\Component\Validator\Validator | vendor/ |
A wrapper for a callable initializing a property from a getter. | 1 | |||
LazyProxyTrait | trait | Symfony\Component\VarExporter | vendor/ |
|||||
LazyRouteCollection | class | Drupal\Core\Routing | core/ |
|||||
LazyServiceDumper | final class | Symfony\Component\DependencyInjection\LazyProxy\PhpDumper | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 2 | |||
LazyServiceInstantiator | final class | Symfony\Component\DependencyInjection\LazyProxy\Instantiator | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 1 | |||
LazyString | class | Symfony\Component\String | vendor/ |
A string whose value is computed lazily by a callback. | ||||
LazyTrait | trait | Symfony\Component\DependencyInjection\Loader\Configurator\Traits | vendor/ |
|||||
LazyUuidFromString | final class | Ramsey\Uuid\Lazy | vendor/ |
Lazy version of a UUID: its format has not been determined yet, so it is mostly only usable for string/bytes conversion. This object optimizes instantiation, serialization and string conversion time, at the cost of increased overhead for more advanced… | 3 | |||
LCheckPlainSniff | class | DrupalPractice\Sniffs\FunctionCalls | vendor/ |
The first argument of the l() function should not be check_plain()'ed. | ||||
LeagueHtmlToMarkdownConverter | class | Symfony\Component\Mime\HtmlToTextConverter | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | ||||
LeaveProfileNode | class | Twig\Profiler\Node | vendor/ |
Represents a profile leave node. | 1 | |||
LegacyElement | class | WebDriver | vendor/ |
WebDriver\LegacyElement class | ||||
LegacyExecute | class | WebDriver | vendor/ |
WebDriver\LegacyExecute class |