Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core

Primary tabs

  • Drupal 11.1.x

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/lib/Drupal/Core/Hook/Attribute/LegacyHook.php Defines a LegacyHook attribute object. 2
LegacyVersionUtility final class Drupal\package_manager core/modules/package_manager/src/LegacyVersionUtility.php A utility class for dealing with legacy version numbers. 1
LegacyWindow class WebDriver vendor/lullabot/php-webdriver/lib/WebDriver/LegacyWindow.php WebDriver\LegacyWindow class 1
Length class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/Length.php Validates that a given string length is between some minimum and maximum value. 1 1
LengthConstraint class Drupal\Core\Validation\Plugin\Validation\Constraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/LengthConstraint.php Length constraint.
LengthException class React\Promise\Exception vendor/react/promise/src/Exception/LengthException.php 1
LengthRequiredHttpException class Symfony\Component\HttpKernel\Exception vendor/symfony/http-kernel/Exception/LengthRequiredHttpException.php @author Ben Ramsey <ben@benramsey.com> 1 1
LengthValidator class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/LengthValidator.php @author Bernhard Schussek <bschussek@gmail.com>
LessBinary class Twig\Node\Expression\Binary vendor/twig/twig/src/Node/Expression/Binary/LessBinary.php 1
LessEqualBinary class Twig\Node\Expression\Binary vendor/twig/twig/src/Node/Expression/Binary/LessEqualBinary.php 1
LessThan class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/LessThan.php Validates that a value is less than another value. 1
LessThan final class PHPUnit\Framework\Constraint vendor/phpunit/phpunit/src/Framework/Constraint/Cardinality/LessThan.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 2
LessThanOrEqual class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/LessThanOrEqual.php Validates that a value is less than or equal to another value. 1
LessThanOrEqualValidator class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/LessThanOrEqualValidator.php Validates values are less than or equal to the previous (<=).
LessThanValidator class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/LessThanValidator.php Validates values are less than the previous (<).
Lexer class PhpParser vendor/nikic/php-parser/lib/PhpParser/Lexer.php 1 1
Lexer class PHPStan\PhpDocParser\Lexer vendor/phpstan/phpdoc-parser/src/Lexer/Lexer.php Implementation based on Nette Tokenizer (New BSD License; https://github.com/nette/tokenizer) 9
Lexer class Twig vendor/twig/twig/src/Lexer.php @author Fabien Potencier <fabien@symfony.com>
Lexer class Seld\JsonLint vendor/seld/jsonlint/src/Seld/JsonLint/Lexer.php Lexer class
LibrariesDirectoryFileFinder class Drupal\Core\Asset core/lib/Drupal/Core/Asset/LibrariesDirectoryFileFinder.php Finds files that are located in the supported 'libraries' directories.
Library class PharIo\Manifest vendor/phar-io/manifest/src/values/Library.php
LibraryDefinitionMissingLicenseException class Drupal\Core\Asset\Exception core/lib/Drupal/Core/Asset/Exception/LibraryDefinitionMissingLicenseException.php Defines a custom exception if a library has a remote but no license. 1
LibraryDependencyResolver class Drupal\Core\Asset core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php Resolves the dependencies of asset (CSS/JavaScript) libraries.
LibraryDependencyResolverInterface interface Drupal\Core\Asset core/lib/Drupal/Core/Asset/LibraryDependencyResolverInterface.php 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/lib/Drupal/Core/Asset/LibraryDiscovery.php Discovers available asset libraries in Drupal.
LibraryDiscoveryCollector class Drupal\Core\Asset core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php A CacheCollector implementation for building library extension info.
LibraryDiscoveryInterface interface Drupal\Core\Asset core/lib/Drupal/Core/Asset/LibraryDiscoveryInterface.php Discovers information for asset (CSS/JavaScript) libraries. 2
LibraryDiscoveryParser class Drupal\Core\Asset core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php Parses library files to get extension data.
LibraryInstaller class Composer\Installer vendor/composer/composer/src/Composer/Installer/LibraryInstaller.php Package installation manager. 2 1
License class PharIo\Manifest vendor/phar-io/manifest/src/values/License.php
LicenseElement class PharIo\Manifest vendor/phar-io/manifest/src/xml/LicenseElement.php
LicensesCommand class Composer\Command vendor/composer/composer/src/Composer/Command/LicensesCommand.php @author Benoît Merlet <benoit.merlet@gmail.com>
LimitStream final class GuzzleHttp\Psr7 vendor/guzzlehttp/psr7/src/LimitStream.php Decorator used to return only a subset of a stream.
Line final class SebastianBergmann\Diff vendor/sebastian/diff/src/Line.php
Line class PhpParser\Node\Scalar\MagicConst vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Line.php
LinearHistory final class Drupal\Core\Config\Checkpoint core/lib/Drupal/Core/Config/Checkpoint/LinearHistory.php A chronological list of Checkpoint objects.
LineCountingVisitor final class SebastianBergmann\LinesOfCode vendor/sebastian/lines-of-code/src/LineCountingVisitor.php 1
LineEndingsSniff class PHP_CodeSniffer\Standards\Generic\Sniffs\Files vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/LineEndingsSniff.php
LineLengthSniff class PHP_CodeSniffer\Standards\Generic\Sniffs\Files vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/LineLengthSniff.php 1 1
LineLengthSniff class Drupal\Sniffs\Files vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Files/LineLengthSniff.php Checks comment lines in the file, and throws warnings if they are over 80 characters in length. 1
LineLengthSniff class SlevomatCodingStandard\Sniffs\Files vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Files/LineLengthSniff.php
LinesOfCode final class SebastianBergmann\LinesOfCode vendor/sebastian/lines-of-code/src/LinesOfCode.php @psalm-immutable
Link class Drupal\Core core/lib/Drupal/Core/Link.php Defines an object that holds information about a link. 58
Link final class Drupal\jsonapi\JsonApiResource core/modules/jsonapi/src/JsonApiResource/Link.php Represents an RFC8288 based link. 4
Link final class OpenTelemetry\SDK\Trace vendor/open-telemetry/sdk/Trace/Link.php
Link class Drupal\Core\Render\Element core/lib/Drupal/Core/Render/Element/Link.php Provides a link render element. 2 2
Link class Composer\Package vendor/composer/composer/src/Composer/Package/Link.php Represents a link between two packages, represented by their names 12
Link class Opentelemetry\Proto\Trace\V1\Span vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Trace/V1/Span/Link.php 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/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Link.php Reflection class for a {link tag in a Docblock. 1
Link class Symfony\Component\DomCrawler vendor/symfony/dom-crawler/Link.php Link represents an HTML link (an HTML a, area or link tag). 1 1

Pagination

  • First page
  • Previous page
  • …
  • Page 104
  • Page 105
  • Page 106
  • Page 107
  • Page 108
  • Page 109
  • Page 110
  • Page 111
  • Page 112
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal