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 |
---|---|---|---|---|---|---|---|---|
ExpressionLanguageProvider | class | Symfony\Component\DependencyInjection | vendor/ |
Define some ExpressionLanguage functions. | ||||
ExpressionLanguageProvider | class | Symfony\Component\Routing\Matcher | vendor/ |
Exposes functions defined in the request context to route conditions. | ||||
ExpressionLanguageProvider | class | Symfony\Component\Validator\Constraints | vendor/ |
|||||
ExpressionParser | class | Twig | vendor/ |
Parses expressions. | 2 | |||
ExpressionRequestMatcher | class | Symfony\Component\HttpFoundation\RequestMatcher | vendor/ |
ExpressionRequestMatcher uses an expression to match a Request. | ||||
ExpressionStatement | class | Peast\Syntax\Node | vendor/ |
A node that represents an expression statement and wraps another expression. | ||||
ExpressionSyntax | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is valid as an ExpressionLanguage expression. | ||||
ExpressionSyntaxValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Andrey Sevastianov <mrpkmail@gmail.com> | ||||
ExpressionValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Fabien Potencier <fabien@symfony.com> @author Bernhard Schussek <bschussek@symfony.com> | 1 | |||
ExtElement | class | PharIo\Manifest | vendor/ |
|||||
ExtElementCollection | class | PharIo\Manifest | vendor/ |
|||||
ExtendableInterface | interface | Drupal\Core\Database\Query | core/ |
Interface for extendable query objects. | 1 | |||
ExtendsFactory | final class | phpDocumentor\Reflection\DocBlock\Tags\Factory | vendor/ |
@internal This class is not part of the BC promise of this library. | 1 | |||
ExtendsTagValueNode | class | PHPStan\PhpDocParser\Ast\PhpDoc | vendor/ |
3 | ||||
ExtendsTokenParser | final class | Twig\TokenParser | vendor/ |
Extends a template by another one. | 1 | |||
Extends_ | class | phpDocumentor\Reflection\DocBlock\Tags | vendor/ |
Reflection class for a {extends tag in a Docblock. | 1 | 1 | ||
Extension | class | Drupal\Core\Extension | core/ |
Defines an extension (file) object. | 1 | 14 | ||
Extension | class | mglaman\PHPStanDrupal\Drupal | vendor/ |
Defines an extension (file) object. | 1 | |||
Extension | abstract class | Symfony\Component\HttpKernel\DependencyInjection | vendor/ |
Allow adding classes to the class cache. | 1 | |||
Extension | abstract class | Symfony\Component\DependencyInjection\Extension | vendor/ |
Provides useful features shared by many extensions. | 3 | 3 | ||
Extension | class | Drupal\system\Plugin\migrate\source | core/ |
Drupal 6/7 system data for a legacy extension source from database. | ||||
Extension | interface | PHPUnit\Runner\Extension | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
Extension | class | PharIo\Manifest | vendor/ |
|||||
ExtensionBootstrap | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
ExtensionBootstrapCollection | final class | PHPUnit\TextUI\Configuration | vendor/ |
@template-implements IteratorAggregate<int, ExtensionBootstrap> | 4 | |||
ExtensionBootstrapCollectionIterator | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
ExtensionBootstrapped | final class | PHPUnit\Event\TestRunner | vendor/ |
@psalm-immutable | ||||
ExtensionBootstrappedSubscriber | interface | PHPUnit\Event\TestRunner | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
ExtensionBootstrapper | final class | PHPUnit\Runner\Extension | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
ExtensionCompilerPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
A pass to automatically process extensions if they implement CompilerPassInterface. | ||||
ExtensionDependency | final class | Nevay\SPI\ServiceProviderDependency | vendor/ |
Specifies extensions required by a service provider. | 1 | |||
ExtensionDiscovery | class | mglaman\PHPStanDrupal\Drupal | vendor/ |
|||||
ExtensionDiscovery | class | Drupal\Core\Extension | core/ |
Discovers available extensions in the filesystem. | 12 | |||
ExtensionElement | class | PharIo\Manifest | vendor/ |
|||||
ExtensionExistsConstraint | class | Drupal\Core\Extension\Plugin\Validation\Constraint | core/ |
Checks that the value is the name of an installed extension. | ||||
ExtensionExistsConstraintValidator | class | Drupal\Core\Extension\Plugin\Validation\Constraint | core/ |
Validates that a given extension exists. | ||||
ExtensionFileException | class | Symfony\Component\HttpFoundation\File\Exception | vendor/ |
Thrown when an UPLOAD_ERR_EXTENSION error occurred with UploadedFile. | 1 | |||
ExtensionHookManager | final class | OpenTelemetry\API\Instrumentation\AutoInstrumentation | vendor/ |
@phan-file-suppress PhanUndeclaredClassAttribute | ||||
ExtensionInstallStorage | class | Drupal\Core\Config | core/ |
Storage to access configuration and schema in enabled extensions. | 1 | |||
ExtensionInterface | interface | Symfony\Component\CssSelector\XPath\Extension | vendor/ |
XPath expression translator extension interface. | 1 | |||
ExtensionInterface | interface | Twig\Extension | vendor/ |
Interface implemented by extension classes. | 1 | 4 | ||
ExtensionInterface | interface | Symfony\Component\DependencyInjection\Extension | vendor/ |
ExtensionInterface is the interface implemented by container extension classes. | 1 | 10 | ||
ExtensionLifecycle | final class | Drupal\Core\Extension | core/ |
Extension lifecycle. | 7 | |||
ExtensionList | abstract class | Drupal\Core\Extension | core/ |
Provides available extensions. | 5 | |||
ExtensionListTrait | trait | Drupal\Core\Installer | core/ |
Provides common functionality for the extension list classes. | ||||
ExtensionLoadedFromPhar | final class | PHPUnit\Event\TestRunner | vendor/ |
@psalm-immutable | ||||
ExtensionLoadedFromPharSubscriber | interface | PHPUnit\Event\TestRunner | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
ExtensionMap | final class | mglaman\PHPStanDrupal\Drupal | vendor/ |
1 | ||||
ExtensionMimeTypeGuesser | class | Drupal\Core\ProxyClass\File\MimeType | core/ |
Provides a proxy class for \Drupal\Core\File\MimeType\ExtensionMimeTypeGuesser. | ||||
ExtensionMimeTypeGuesser | class | Drupal\Core\File\MimeType | core/ |
Makes possible to guess the MIME type of a file using its extension. |