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 |
---|---|---|---|---|---|---|---|---|
LegacyHook | class | Drupal\Core\Hook\Attribute | core/ |
Defines a LegacyHook attribute object. | 2 | |||
LegacyVersionUtility | final class | Drupal\package_manager | core/ |
A utility class for dealing with legacy version numbers. | 1 | |||
LegacyWindow | class | WebDriver | vendor/ |
WebDriver\LegacyWindow class | 1 | |||
Length | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a given string length is between some minimum and maximum value. | 1 | 1 | ||
LengthConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Length constraint. | ||||
LengthException | class | React\Promise\Exception | vendor/ |
1 | ||||
LengthRequiredHttpException | class | Symfony\Component\HttpKernel\Exception | vendor/ |
@author Ben Ramsey <ben@benramsey.com> | 1 | 1 | ||
LengthValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Bernhard Schussek <bschussek@gmail.com> | ||||
LessBinary | class | Twig\Node\Expression\Binary | vendor/ |
1 | ||||
LessEqualBinary | class | Twig\Node\Expression\Binary | vendor/ |
1 | ||||
LessThan | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is less than another value. | 1 | |||
LessThan | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
LessThanOrEqual | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is less than or equal to another value. | 1 | |||
LessThanOrEqualValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates values are less than or equal to the previous (<=). | ||||
LessThanValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates values are less than the previous (<). | ||||
Lexer | class | PhpParser | vendor/ |
1 | 1 | |||
Lexer | class | PHPStan\PhpDocParser\Lexer | vendor/ |
Implementation based on Nette Tokenizer (New BSD License; https://github.com/nette/tokenizer) | 9 | |||
Lexer | class | Twig | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | ||||
Lexer | class | Seld\JsonLint | vendor/ |
Lexer class | ||||
LibrariesDirectoryFileFinder | class | Drupal\Core\Asset | core/ |
Finds files that are located in the supported 'libraries' directories. | ||||
Library | class | PharIo\Manifest | vendor/ |
|||||
LibraryDefinitionMissingLicenseException | class | Drupal\Core\Asset\Exception | core/ |
Defines a custom exception if a library has a remote but no license. | 1 | |||
LibraryDependencyResolver | class | Drupal\Core\Asset | core/ |
Resolves the dependencies of asset (CSS/JavaScript) libraries. | ||||
LibraryDependencyResolverInterface | interface | Drupal\Core\Asset | core/ |
Resolves the dependencies of asset (CSS/JavaScript) libraries. | 1 | 1 | ||
LibraryDiscovery | in drupal:11.1.0 and is removed from drupal:12.0.0. Use \Drupal\Core\Asset\LibraryDiscoveryCollector instead. |
class | Drupal\Core\Asset | core/ |
Discovers available asset libraries in Drupal. | |||
LibraryDiscoveryCollector | class | Drupal\Core\Asset | core/ |
A CacheCollector implementation for building library extension info. | ||||
LibraryDiscoveryInterface | interface | Drupal\Core\Asset | core/ |
Discovers information for asset (CSS/JavaScript) libraries. | 2 | |||
LibraryDiscoveryParser | class | Drupal\Core\Asset | core/ |
Parses library files to get extension data. | ||||
LibraryInstaller | class | Composer\Installer | vendor/ |
Package installation manager. | 2 | 1 | ||
License | class | PharIo\Manifest | vendor/ |
|||||
LicenseElement | class | PharIo\Manifest | vendor/ |
|||||
LicensesCommand | class | Composer\Command | vendor/ |
@author Benoît Merlet <benoit.merlet@gmail.com> | ||||
LimitStream | final class | GuzzleHttp\Psr7 | vendor/ |
Decorator used to return only a subset of a stream. | ||||
Line | final class | SebastianBergmann\Diff | vendor/ |
|||||
Line | class | PhpParser\Node\Scalar\MagicConst | vendor/ |
|||||
LinearHistory | final class | Drupal\Core\Config\Checkpoint | core/ |
A chronological list of Checkpoint objects. | ||||
LineCountingVisitor | final class | SebastianBergmann\LinesOfCode | vendor/ |
1 | ||||
LineEndingsSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\Files | vendor/ |
|||||
LineLengthSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\Files | vendor/ |
1 | 1 | |||
LineLengthSniff | class | Drupal\Sniffs\Files | vendor/ |
Checks comment lines in the file, and throws warnings if they are over 80 characters in length. | 1 | |||
LineLengthSniff | class | SlevomatCodingStandard\Sniffs\Files | vendor/ |
|||||
LinesOfCode | final class | SebastianBergmann\LinesOfCode | vendor/ |
@psalm-immutable | ||||
Link | class | Drupal\Core | core/ |
Defines an object that holds information about a link. | 58 | |||
Link | final class | Drupal\jsonapi\JsonApiResource | core/ |
Represents an RFC8288 based link. | 4 | |||
Link | final class | OpenTelemetry\SDK\Trace | vendor/ |
|||||
Link | class | Drupal\Core\Render\Element | core/ |
Provides a link render element. | 2 | 2 | ||
Link | class | Composer\Package | vendor/ |
Represents a link between two packages, represented by their names | 12 | |||
Link | class | Opentelemetry\Proto\Trace\V1\Span | vendor/ |
A pointer from the current span to another span in the same trace or in a different trace. For example, this can be used in batching operations, where a single batch handler processes multiple requests from different traces or when the handler… | 1 | |||
Link | final class | phpDocumentor\Reflection\DocBlock\Tags | vendor/ |
Reflection class for a {link tag in a Docblock. | 1 | |||
Link | class | Symfony\Component\DomCrawler | vendor/ |
Link represents an HTML link (an HTML a, area or link tag). | 1 | 1 |