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 |
---|---|---|---|---|---|---|---|---|
AbstractPluginManagerRule | abstract class | mglaman\PHPStanDrupal\Rules\Drupal\PluginManager | vendor/ |
@template TNodeType of \PhpParser\Node @implements Rule<TNodeType> | 1 | |||
AbstractPrecondition | abstract class | PhpTuf\ComposerStager\Internal\Precondition\Service | vendor/ |
@package Precondition | 11 | |||
AbstractPreconditionsTree | abstract class | PhpTuf\ComposerStager\Internal\Precondition\Service | vendor/ |
@package Precondition | 8 | |||
AbstractProcessRunner | abstract class | PhpTuf\ComposerStager\Internal\Process\Service | vendor/ |
Provides a base for process runners for consistent process creation and exception-handling. | 2 | |||
AbstractPropertyConstantAndEnumCaseSpacing | abstract class | SlevomatCodingStandard\Sniffs\Classes | vendor/ |
@internal | 3 | |||
AbstractProxy | abstract class | Symfony\Component\HttpFoundation\Session\Storage\Proxy | vendor/ |
@author Drak <drak@zikula.org> | 2 | 5 | ||
AbstractRecursivePass | abstract class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 29 | |||
AbstractRequestRateLimiter | abstract class | Symfony\Component\HttpFoundation\RateLimiter | vendor/ |
An implementation of PeekableRequestRateLimiterInterface that fits most use-cases. | ||||
AbstractRequireOneLineDocComment | abstract class | SlevomatCodingStandard\Sniffs\Commenting | vendor/ |
@internal | 2 | |||
AbstractRetriever | abstract class | JsonSchema\Uri\Retrievers | vendor/ |
AbstractRetriever implements the default shared behavior that all descendant Retrievers should inherit | 3 | |||
AbstractScopeSniff | abstract class | PHP_CodeSniffer\Sniffs | vendor/ |
11 | 11 | |||
AbstractServiceConfigurator | abstract class | Symfony\Component\DependencyInjection\Loader\Configurator | vendor/ |
6 | ||||
AbstractSessionHandler | abstract class | Symfony\Component\HttpFoundation\Session\Storage\Handler | vendor/ |
This abstract session handler provides a generic implementation of the PHP 7.0 SessionUpdateTimestampHandlerInterface, enabling strict and lazy session handling. | 6 | |||
AbstractSessionListener | abstract class | Symfony\Component\HttpKernel\EventListener | vendor/ |
Sets the session onto the request on the "kernel.request" event and saves it on the "kernel.response" event. | 1 | |||
AbstractSet | abstract class | Ramsey\Collection | vendor/ |
This class contains the basic implementation of a collection that does not allow duplicated values (a set), to minimize the effort required to implement this specific type of collection. | 1 | |||
AbstractStorage | abstract class | WebDriver\Storage | vendor/ |
WebDriver\AbstractStorage class | 2 | |||
AbstractStream | abstract class | Symfony\Component\Mailer\Transport\Smtp\Stream | vendor/ |
A stream supporting remote sockets and local processes. | 2 | 3 | ||
AbstractString | abstract class | Symfony\Component\String | vendor/ |
Represents a string of abstract characters. | 2 | |||
AbstractSurrogate | abstract class | Symfony\Component\HttpKernel\HttpCache | vendor/ |
Abstract class implementing Surrogate capabilities to Request and Response instances. | 2 | |||
AbstractSurrogateFragmentRenderer | abstract class | Symfony\Component\HttpKernel\Fragment | vendor/ |
Implements Surrogate rendering strategy. | 2 | |||
AbstractTokenParser | abstract class | Twig\TokenParser | vendor/ |
Base class for all token parsers. | 20 | 1 | ||
AbstractTrait | trait | Symfony\Component\DependencyInjection\Loader\Configurator\Traits | vendor/ |
|||||
AbstractTransport | abstract class | Symfony\Component\Mailer\Transport | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 4 | 1 | ||
AbstractTransportFactory | abstract class | Symfony\Component\Mailer\Transport | vendor/ |
@author Konstantin Myakshin <molodchick@gmail.com> | 4 | 1 | ||
AbstractTransportFactoryTestCase | abstract class | Symfony\Component\Mailer\Test | vendor/ |
1 | ||||
AbstractTwigCallable | abstract class | Twig | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 3 | |||
AbstractTypedMap | abstract class | Ramsey\Collection\Map | vendor/ |
This class provides a basic implementation of `TypedMapInterface`, to minimize the effort required to implement this interface. | 1 | |||
AbstractUnary | abstract class | Twig\Node\Expression\Unary | vendor/ |
5 | 2 | |||
AbstractUnicodeString | abstract class | Symfony\Component\String | vendor/ |
Represents a string of abstract Unicode characters. | 2 | 2 | ||
AbstractUriElement | abstract class | Symfony\Component\DomCrawler | vendor/ |
Any HTML element that can link to an URI. | 2 | |||
AbstractVariableSniff | abstract class | PHP_CodeSniffer\Sniffs | vendor/ |
11 | 11 | |||
AbstractVersionConstraint | abstract class | PharIo\Version | vendor/ |
6 | ||||
AbstractWebDriver | abstract class | WebDriver | vendor/ |
Abstract WebDriver\AbstractWebDriver class | 13 | 1 | ||
AcceptHeader | class | Symfony\Component\HttpFoundation | vendor/ |
Represents an Accept-* header. | ||||
AcceptHeaderItem | class | Symfony\Component\HttpFoundation | vendor/ |
Represents an Accept-* header item. | ||||
Access | class | Drupal\node\Plugin\views\filter | core/ |
Filter by node_access records. | ||||
AccessAdminPagesSniff | class | DrupalPractice\Sniffs\General | vendor/ |
Throws a warning if the "access administration pages" string is found in hook_menu(). | ||||
AccessArgumentsResolverFactory | class | Drupal\Core\Access | core/ |
Resolves the arguments to pass to an access check callable. | ||||
AccessArgumentsResolverFactoryInterface | interface | Drupal\Core\Access | core/ |
Constructs the arguments resolver instance to use when running access checks. | 1 | |||
AccessAwareRouter | class | Drupal\Core\Routing | core/ |
A router class for Drupal with access check and upcasting. | 1 | |||
AccessAwareRouterInterface | interface | Drupal\Core\Routing | core/ |
Interface for a router class for Drupal with access check and upcasting. | 1 | 4 | ||
AccessCheckInterface | interface | Drupal\Core\Access | core/ |
An access check service determines access rules for particular routes. | 1 | 1 | ||
AccessCheckTypeSpecifyingExtension | final class | mglaman\PHPStanDrupal\Type\EntityQuery | vendor/ |
|||||
AccessDeniedException | class | Symfony\Component\Finder\Exception | vendor/ |
@author Jean-François Simon <jeanfrancois.simon@sensiolabs.com> | 1 | |||
AccessDeniedException | class | Symfony\Component\HttpFoundation\File\Exception | vendor/ |
Thrown when the access on a file was denied. | 1 | |||
AccessDeniedHttpException | class | Symfony\Component\HttpKernel\Exception | vendor/ |
@author Fabien Potencier <fabien@symfony.com> @author Christophe Coevoet <stof@notk.org> | 1 | 27 | ||
AccessDeniedSubscriber | class | Drupal\user\EventSubscriber | core/ |
Redirects users when access is denied. | 2 | |||
AccessDeprecatedConstant | class | mglaman\PHPStanDrupal\Rules\Deprecations | vendor/ |
@implements Rule<Node\Expr\ConstFetch> | ||||
AccessDeprecatedPropertyRule | class | PHPStan\Rules\Deprecations | vendor/ |
@implements Rule<PropertyFetch> | ||||
AccessDeprecatedStaticPropertyRule | class | PHPStan\Rules\Deprecations | vendor/ |
@implements Rule<StaticPropertyFetch> |