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 |
---|---|---|---|---|---|---|---|---|
LogicException | class | Symfony\Component\Process\Exception | vendor/ |
LogicException for the Process Component. | 1 | 4 | ||
LogicException | class | Symfony\Component\Mime\Exception | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | 8 | ||
LogicException | class | Symfony\Component\Serializer\Exception | vendor/ |
LogicException. | 1 | 11 | ||
LogicException | class | Symfony\Component\BrowserKit\Exception | vendor/ |
1 | 3 | |||
LoginAuthenticator | class | Symfony\Component\Mailer\Transport\Smtp\Auth | vendor/ |
Handles LOGIN authentication. | ||||
LoginLogoutMenuLink | class | Drupal\user\Plugin\Menu | core/ |
A menu link that shows "Log in" or "Log out" as appropriate. | 1 | |||
LoginStatusCheck | class | Drupal\user\Access | core/ |
Determines access to routes based on login status of current user. | 2 | |||
LogLevel | class | Psr\Log | vendor/ |
Describes log levels. | 19 | |||
LogMessageParser | class | Drupal\Core\Logger | core/ |
Parses log messages and their placeholders. | ||||
LogMessageParserInterface | interface | Drupal\Core\Logger | core/ |
Defines an interface for parsing log messages and their placeholders. | 1 | 2 | ||
LogRecord | class | OpenTelemetry\API\Logs | vendor/ |
1 | 3 | |||
LogRecord | class | Opentelemetry\Proto\Logs\V1 | vendor/ |
A log record according to OpenTelemetry Log Data Model: https://github.com/open-telemetry/oteps/blob/main/text/logs/0097-log-data-model.md | 1 | |||
LogRecordAttributeValidator | class | OpenTelemetry\SDK\Common\Attribute | vendor/ |
1 | ||||
LogRecordExporterFactoryInterface | interface | OpenTelemetry\SDK\Logs | vendor/ |
3 | 4 | |||
LogRecordExporterInterface | interface | OpenTelemetry\SDK\Logs | vendor/ |
4 | 9 | |||
LogRecordFlags | class | Opentelemetry\Proto\Logs\V1 | vendor/ |
LogRecordFlags represents constants used to interpret the LogRecord.flags field, which is protobuf 'fixed32' type and is to be used as bit-fields. Each non-zero value defined in this enum is a bit-mask. To extract the bit-field, for… | ||||
LogRecordLimits | class | OpenTelemetry\SDK\Logs | vendor/ |
|||||
LogRecordLimitsBuilder | class | OpenTelemetry\SDK\Logs | vendor/ |
|||||
LogRecordProcessorFactory | class | OpenTelemetry\SDK\Logs | vendor/ |
|||||
LogRecordProcessorInterface | interface | OpenTelemetry\SDK\Logs | vendor/ |
4 | 4 | |||
Logs | class | GPBMetadata\Opentelemetry\Proto\Logs\V1 | vendor/ |
|||||
LogsConverter | class | OpenTelemetry\Contrib\Otlp | vendor/ |
|||||
LogsData | class | Opentelemetry\Proto\Logs\V1 | vendor/ |
LogsData represents the logs data that can be stored in a persistent storage, OR can be embedded by other protocols that transfer OTLP logs data but do not implement the OTLP protocol. The main difference between this message and collector protocol is… | ||||
LogsExporter | class | OpenTelemetry\Contrib\Otlp | vendor/ |
@psalm-import-type SUPPORTED_CONTENT_TYPES from ProtobufSerializer | ||||
LogsExporterFactory | class | OpenTelemetry\Contrib\Otlp | vendor/ |
|||||
LogsMessagesTrait | trait | OpenTelemetry\API\Behavior | vendor/ |
23 | ||||
LogsService | class | GPBMetadata\Opentelemetry\Proto\Collector\Logs\V1 | vendor/ |
|||||
LogsServiceClient | class | Opentelemetry\Proto\Collector\Logs\V1 | vendor/ |
Service that can be used to push logs between one Application instrumented with OpenTelemetry and an collector, or between an collector and a central collector (in this case logs are sent/received to/from multiple Applications). | ||||
LogToReportMigration | abstract class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 6 | |||
LogType | final class | WebDriver | vendor/ |
WebDriver\LogType class | ||||
LogWriterFactory | class | OpenTelemetry\API\Behavior\Internal | vendor/ |
|||||
LogWriterInterface | interface | OpenTelemetry\API\Behavior\Internal\LogWriter | vendor/ |
4 | 2 | |||
LongConditionClosingCommentSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting | vendor/ |
|||||
LongestCommonSubsequenceCalculator | interface | SebastianBergmann\Diff | vendor/ |
2 | ||||
LongTypeHintsSniff | class | SlevomatCodingStandard\Sniffs\TypeHints | vendor/ |
|||||
Loop | class | Composer\Util | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | 6 | |||
LooseTypeCheck | class | JsonSchema\Constraints\TypeCheck | vendor/ |
1 | ||||
LowercaseClassKeywordsSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes | vendor/ |
|||||
LowerCaseConstantSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\PHP | vendor/ |
1 | ||||
LowercaseDeclarationSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures | vendor/ |
|||||
LowercasedFilenameSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\Files | vendor/ |
|||||
LowercaseFunctionKeywordsSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions | vendor/ |
|||||
LowerCaseKeywordSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\PHP | vendor/ |
|||||
LowercasePHPFunctionsSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP | vendor/ |
|||||
LowercaseString | final class | phpDocumentor\Reflection\PseudoTypes | vendor/ |
Value Object representing the type 'string'. | 1 | |||
LowercaseStyleDefinitionSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS | vendor/ |
|||||
LowerCaseTypeSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\PHP | vendor/ |
|||||
LSM | class | Peast\Syntax | vendor/ |
Longest Sequence Matcher. Utility class used by the scanner to consume the longest sequence of character given a set of allowed characters sequences. | ||||
LStringTranslatableSniff | class | Drupal\Sniffs\Semantics | vendor/ |
Checks that string literals passed to l() are translatable. | ||||
Luhn | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value (typically a credit card number) passes the Luhn algorithm. |