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 |
---|---|---|---|---|---|---|---|---|
LocaleOptionsInterface | interface | PhpTuf\ComposerStager\API\Translation\Service | vendor/ |
Provides locale values for the translation system. | 1 | 2 | ||
LocaleProjectStorage | class | Drupal\locale | core/ |
Provides the locale project storage system using a key value store. | 2 | |||
LocaleProjectStorageInterface | interface | Drupal\locale | core/ |
Defines the locale project storage interface. | 1 | |||
LocaleSettingsForm | class | Drupal\locale\Form | core/ |
Configure locale settings for this site. | 1 | |||
LocaleTranslation | class | Drupal\locale\Plugin\QueueWorker | core/ |
Executes interface translation queue tasks. | ||||
LocaleTranslation | class | Drupal\locale | core/ |
String translator using the locale module. | 2 | |||
LocaleTranslationCacheTag | class | Drupal\locale\EventSubscriber | core/ |
A subscriber invalidating cache tags when translating a string. | 2 | |||
LocaleValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates whether a value is a valid locale code. | ||||
LocalFile | class | PHP_CodeSniffer\Files | vendor/ |
1 | ||||
LocalizedRouteTrait | trait | Symfony\Component\Routing\Loader\Configurator\Traits | vendor/ |
@internal | 2 | |||
LocalOrReservedDomain | class | Egulias\EmailValidator\Result\Reason | vendor/ |
1 | ||||
LocalPart | class | Egulias\EmailValidator\Parser | vendor/ |
1 | 1 | |||
LocalReadOnlyStream | abstract class | Drupal\Core\StreamWrapper | core/ |
Defines a read-only Drupal stream wrapper base class for local files. | ||||
LocalRedirectResponse | class | Drupal\Core\Routing | core/ |
Provides a redirect response which cannot redirect to an external URL. | 3 | |||
LocalRepoTransaction | class | Composer\DependencyResolver | vendor/ |
@author Nils Adermann <naderman@naderman.de> @internal | 1 | |||
LocalRootSpan | class | OpenTelemetry\API\Trace | vendor/ |
@experimental | ||||
LocalStream | abstract class | Drupal\Core\StreamWrapper | core/ |
Defines a Drupal stream wrapper base class for local files. | 5 | 4 | ||
LocalTaskDefault | class | Drupal\Core\Menu | core/ |
Default object used for LocalTaskPlugins. | 2 | 2 | 4 | |
LocalTaskInterface | interface | Drupal\Core\Menu | core/ |
Defines an interface for menu local tasks. | 1 | |||
LocalTaskManager | class | Drupal\Core\Menu | core/ |
Provides the default local task manager using YML as primary definition. | ||||
LocalTaskManagerInterface | interface | Drupal\Core\Menu | core/ |
Manages discovery and instantiation of menu local task plugins. | 1 | 2 | ||
LocalTasksBlock | class | Drupal\Core\Menu\Plugin\Block | core/ |
Provides a "Tabs" block to display the local tasks. | ||||
LocalTooLong | class | Egulias\EmailValidator\Warning | vendor/ |
1 | ||||
LocalVariable | final class | Twig\Node\Expression\Variable | vendor/ |
4 | ||||
Location | final class | phpDocumentor\Reflection | vendor/ |
The location where an element occurs within a file. | ||||
Location | class | Google\Protobuf\Internal\SourceCodeInfo | vendor/ |
Generated from protobuf message <code>google.protobuf.SourceCodeInfo.Location</code> | ||||
LocatorStrategy | final class | WebDriver | vendor/ |
WebDriver\LocatorStrategy class | ||||
Lock | final class | Symfony\Component\Lock | vendor/ |
Lock is the default implementation of the LockInterface. | 1 | |||
Lock | final class | Drupal\Core\TempStore | core/ |
Provides a value object representing the lock from a TempStore. | 1 | |||
LockableTrait | trait | Symfony\Component\Console\Command | vendor/ |
Basic lock feature for commands. | ||||
LockAcquiringException | class | Drupal\Core\Lock | core/ |
LockAcquiringException is thrown when a lock cannot be acquired. | 4 | |||
LockAcquiringException | class | Symfony\Component\Lock\Exception | vendor/ |
LockAcquiringException is thrown when an issue happens during the acquisition of a lock. | 7 | |||
LockArrayRepository | class | Composer\Repository | vendor/ |
Lock array repository. | 4 | |||
LockBackendAbstract | abstract class | Drupal\Core\Lock | core/ |
Non backend related common methods implementation for lock backends. | 1 | |||
LockBackendInterface | interface | Drupal\Core\Lock | core/ |
Lock backend interface. | 4 | 27 | ||
LockConflictedException | class | Symfony\Component\Lock\Exception | vendor/ |
LockConflictedException is thrown when a lock is acquired by someone else. | 19 | |||
LockedHttpException | class | Symfony\Component\HttpKernel\Exception | vendor/ |
@author Peter Dietrich <xosofox@gmail.com> | ||||
Locker | class | Composer\Package | vendor/ |
Reads/writes project lockfile (composer.lock). | 8 | |||
LockExpiredException | class | Symfony\Component\Lock\Exception | vendor/ |
LockExpiredException is thrown when a lock may conflict due to a TTL expiration. | 3 | |||
LockFactory | class | Symfony\Component\Lock | vendor/ |
Factory provides method to create locks. | 1 | |||
LockFileValidator | final class | Drupal\package_manager\Validator | core/ |
Checks that the active lock file is unchanged during stage operations. | ||||
LockInterface | interface | Symfony\Component\Lock | vendor/ |
LockInterface defines an interface to manipulate the status of a lock. | 1 | 1 | ||
LockReleasingException | class | Symfony\Component\Lock\Exception | vendor/ |
LockReleasingException is thrown when an issue happens during the release of a lock. | 4 | |||
LockStorageException | class | Symfony\Component\Lock\Exception | vendor/ |
LockStorageException is thrown when an issue happens during the manipulation of a lock in a store. | 3 | |||
LockTransaction | class | Composer\DependencyResolver | vendor/ |
@author Nils Adermann <naderman@naderman.de> @internal | 1 | |||
Log | class | Drupal\migrate\Plugin\migrate\process | core/ |
Logs values without changing them. | ||||
Log | class | Drupal\Core\Database | core/ |
Database query logger. | ||||
Log | class | WebDriver | vendor/ |
WebDriver\Log class | ||||
Logger | class | Symfony\Component\HttpKernel\Log | vendor/ |
Minimalist PSR-3 logger designed to write in stderr or any other stream. | 1 | |||
Logger | class | OpenTelemetry\SDK\Logs | vendor/ |
Note that this logger class is deliberately NOT psr-3 compatible, per spec: "Note: this document defines a log backend API. The API is not intended to be called by application developers directly." |