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 |
---|---|---|---|---|---|---|---|---|
LoggerAwareInterface | interface | Psr\Log | vendor/ |
Describes a logger-aware instance. | 12 | 15 | ||
LoggerAwarePass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Sets the logger on all services that implement LoggerAwareInterface. | 1 | |||
LoggerAwareTrait | trait | OpenTelemetry\SDK\Trace\Behavior | vendor/ |
2 | ||||
LoggerAwareTrait | trait | Psr\Log | vendor/ |
Basic Implementation of LoggerAwareInterface. | 11 | |||
LoggerChannel | class | Drupal\Core\Logger | core/ |
Defines a logger channel that most implementations will use. | 2 | |||
LoggerChannelFactory | class | Drupal\Core\Logger | core/ |
Defines a factory for logging channels. | ||||
LoggerChannelFactoryInterface | interface | Drupal\Core\Logger | core/ |
Logger channel factory interface. | 1 | 7 | ||
LoggerChannelInterface | interface | Drupal\Core\Logger | core/ |
Logger channel interface. | 1 | |||
LoggerChannelTrait | trait | Drupal\Core\Logger | core/ |
Wrapper methods for the logger factory service. | 7 | |||
LoggerConfig | class | OpenTelemetry\SDK\Logs | vendor/ |
1 | ||||
LoggerDataCollector | class | Symfony\Component\HttpKernel\DataCollector | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | ||||
LoggerDecorator | class | OpenTelemetry\SDK\Trace\SpanExporter | vendor/ |
|||||
LoggerExporter | class | OpenTelemetry\SDK\Trace\SpanExporter | vendor/ |
|||||
LoggerHolder | final class | OpenTelemetry\API | vendor/ |
1 | ||||
LoggerInterface | interface | Psr\Log | vendor/ |
Describes a logger instance. | 6 | 98 | ||
LoggerInterface | interface | OpenTelemetry\API\Logs | vendor/ |
3 | 5 | |||
LoggerPass | class | Symfony\Component\HttpKernel\DependencyInjection | vendor/ |
Registers the default logger if necessary. | ||||
LoggerProvider | class | OpenTelemetry\SDK\Logs | vendor/ |
|||||
LoggerProviderBuilder | class | OpenTelemetry\SDK\Logs | vendor/ |
|||||
LoggerProviderFactory | class | OpenTelemetry\SDK\Logs | vendor/ |
1 | ||||
LoggerProviderInterface | interface | OpenTelemetry\API\Logs | vendor/ |
2 | 6 | |||
LoggerProviderInterface | interface | OpenTelemetry\SDK\Logs | vendor/ |
2 | 2 | |||
LoggerSharedState | class | OpenTelemetry\SDK\Logs | vendor/ |
|||||
LoggerTrait | trait | Psr\Log | vendor/ |
This is a simple Logger trait that classes unable to extend AbstractLogger (because they extend another class, etc) can include. | 3 | |||
Logging | class | OpenTelemetry\API\Behavior\Internal | vendor/ |
Logging utility functions for internal logging (of OpenTelemetry errors/warnings etc). This is not part of SDK configuration to avoid creating a dependency on SDK from any package which does logging. @todo this should be `@internal`, but deptrac is… | 1 | |||
Logging | final class | PHPUnit\TextUI\XmlConfiguration\Logging | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 4 | |||
LoggingBeginner | final class | Drupal\package_manager | core/ |
Logs Composer Stager's Beginner process output to a file. | ||||
LoggingCommitter | class | Drupal\package_manager | core/ |
Logs Composer Stager's Committer process output to a file. | ||||
LoggingForm | class | Drupal\system\Form | core/ |
Configure logging settings for this site. | 1 | |||
LoggingNotConfiguredException | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
LoggingStager | final class | Drupal\package_manager | core/ |
Logs Composer Stager's Stager process output to a file. | ||||
LogicalAnd | class | PhpParser\Node\Expr\BinaryOp | vendor/ |
1 | ||||
LogicalAnd | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
LogicalAndToken | class | Prophecy\Argument\Token | vendor/ |
Logical AND token. | ||||
LogicalExpression | class | Peast\Syntax\Node | vendor/ |
A node that represents a logical expression. For example: a && b | ||||
LogicalNot | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
LogicalNotToken | class | Prophecy\Argument\Token | vendor/ |
Logical NOT token. | ||||
LogicalOperatorSpacingSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace | vendor/ |
|||||
LogicalOr | class | PhpParser\Node\Expr\BinaryOp | vendor/ |
1 | ||||
LogicalOr | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 3 | |||
LogicalXor | class | PhpParser\Node\Expr\BinaryOp | vendor/ |
|||||
LogicalXor | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
LogicException | class | PhpTuf\ComposerStager\API\Exception | vendor/ |
This exception represents an error in the program logic and should lead to a fix in your code. | 8 | |||
LogicException | class | Symfony\Component\Routing\Exception | vendor/ |
1 | 1 | |||
LogicException | class | Symfony\Component\Mailer\Exception | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 2 | 6 | ||
LogicException | class | Symfony\Component\HttpFoundation\Exception | vendor/ |
Base LogicException for Http Foundation component. | 2 | 1 | ||
LogicException | class | Symfony\Component\VarExporter\Exception | vendor/ |
1 | 2 | |||
LogicException | class | Symfony\Component\Console\Exception | vendor/ |
@author Jérôme Tamarelle <jerome@tamarelle.net> | 1 | 12 | ||
LogicException | class | Symfony\Component\DependencyInjection\Exception | vendor/ |
Base LogicException for Dependency Injection component. | 1 | 21 | ||
LogicException | class | Symfony\Component\Validator\Exception | vendor/ |
1 | 23 |