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 |
---|---|---|---|---|---|---|---|---|
AttributeEmulator | final class | PhpParser\Lexer\TokenEmulator | vendor/ |
1 | ||||
AttributeFileLoader | class | Symfony\Component\Routing\Loader | vendor/ |
AttributeFileLoader loads routing information from attributes set on a PHP class and its methods. | 1 | |||
AttributeGroup | class | PhpParser\Node | vendor/ |
2 | ||||
AttributeHelper | class | SlevomatCodingStandard\Helpers | vendor/ |
@internal | 6 | |||
AttributeHelper | class | Drupal\Core\Template | core/ |
Helper class to deal with mixed array and Attribute operations. | 1 | |||
AttributeInterface | interface | Drupal\Component\Plugin\Attribute | core/ |
Defines a common interface for classed attributes. | 1 | 4 | ||
AttributeLoader | class | Symfony\Component\Serializer\Mapping\Loader | vendor/ |
Loader for PHP attributes. | ||||
AttributeLoader | class | Symfony\Component\Validator\Mapping\Loader | vendor/ |
Loads validation metadata using PHP attributes. | 1 | |||
AttributeMatchingExtension | class | Symfony\Component\CssSelector\XPath\Extension | vendor/ |
XPath expression translator attribute extension. | ||||
AttributeMetadata | class | Symfony\Component\Serializer\Mapping | vendor/ |
@author Kévin Dunglas <dunglas@gmail.com> | 5 | |||
AttributeMetadataInterface | interface | Symfony\Component\Serializer\Mapping | vendor/ |
Stores metadata needed for serializing and deserializing attributes. | 1 | 3 | ||
AttributeNode | class | Symfony\Component\CssSelector\Node | vendor/ |
Represents a "<selector>[<namespace>|<attribute> <operator> <value>]" node. | ||||
AttributeParser | final class | PHPUnit\Metadata\Parser | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
AttributeProcessorInterface | interface | OpenTelemetry\SDK\Metrics | vendor/ |
@internal | 2 | 5 | ||
Attributes | final class | Doctrine\Common\Annotations\Annotation | vendor/ |
Annotation that can be used to signal to the parser to check the types of all declared attributes during the parsing process. | 2 | |||
Attributes | final class | OpenTelemetry\SDK\Common\Attribute | vendor/ |
@psalm-suppress MissingTemplateParam | 18 | |||
AttributesBuilder | final class | OpenTelemetry\SDK\Common\Attribute | vendor/ |
@internal | ||||
AttributesBuilderInterface | interface | OpenTelemetry\SDK\Common\Attribute | vendor/ |
@psalm-suppress MissingTemplateParam | 2 | 2 | ||
AttributesConverter | final class | OpenTelemetry\Contrib\Otlp | vendor/ |
|||||
AttributesFactory | final class | OpenTelemetry\SDK\Common\Attribute | vendor/ |
@internal | ||||
AttributesFactoryInterface | interface | OpenTelemetry\SDK\Common\Attribute | vendor/ |
2 | 6 | |||
AttributesInterface | interface | OpenTelemetry\SDK\Common\Attribute | vendor/ |
@psalm-suppress MissingTemplateParam | 1 | 42 | ||
AttributesOrderSniff | class | SlevomatCodingStandard\Sniffs\Attributes | vendor/ |
|||||
AttributesRequestMatcher | class | Symfony\Component\HttpFoundation\RequestMatcher | vendor/ |
Checks the Request attributes matches all regular expressions. | ||||
AttributeString | class | Drupal\Core\Template | core/ |
A class that represents most standard HTML attributes. | ||||
AttributeValidator | class | OpenTelemetry\SDK\Common\Attribute | vendor/ |
|||||
AttributeValidatorInterface | interface | OpenTelemetry\SDK\Common\Attribute | vendor/ |
2 | ||||
AttributeValueBase | abstract class | Drupal\Core\Template | core/ |
Defines the base class for an attribute type. | 3 | |||
AudioFile | class | Drupal\media\Plugin\media\Source | core/ |
Media source wrapping around an audio file. | ||||
AuditCommand | class | Composer\Command | vendor/ |
|||||
AuditException | class | Drupal\migrate\Audit | core/ |
Defines an exception to throw if an error occurs during a migration audit. | ||||
Auditor | class | Composer\Advisory | vendor/ |
@internal | 11 | |||
AuditorInterface | interface | Drupal\migrate\Audit | core/ |
Defines an interface for migration auditors. | 1 | |||
AuditResult | class | Drupal\migrate\Audit | core/ |
Encapsulates the result of a migration audit. | ||||
AuthenticationCollector | class | Drupal\Core\Authentication | core/ |
A collector class for authentication providers. | ||||
AuthenticationCollectorInterface | interface | Drupal\Core\Authentication | core/ |
Interface for collectors of registered authentication providers. | 1 | |||
AuthenticationManager | class | Drupal\Core\Authentication | core/ |
Manager for authentication. | ||||
AuthenticationProviderChallengeInterface | interface | Drupal\Core\Authentication | core/ |
Generate a challenge when access is denied for unauthenticated users. | 2 | 2 | ||
AuthenticationProviderFilterInterface | interface | Drupal\Core\Authentication | core/ |
Restrict authentication methods to a subset of the site. | 1 | 1 | ||
AuthenticationProviderInterface | interface | Drupal\Core\Authentication | core/ |
Interface for authentication providers. | 3 | 3 | ||
AuthenticationProviderPass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Registers the authentication_providers container parameter. | 1 | |||
AuthenticationSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Authentication subscriber. | ||||
AuthenticatorInterface | interface | Symfony\Component\Mailer\Transport\Smtp\Auth | vendor/ |
An Authentication mechanism. | 4 | 1 | ||
AuthHelper | class | Composer\Util | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | 1 | |||
Author | class | PharIo\Manifest | vendor/ |
|||||
Author | final class | phpDocumentor\Reflection\DocBlock\Tags | vendor/ |
Reflection class for an {author tag in a Docblock. | 1 | |||
AuthorCollection | class | PharIo\Manifest | vendor/ |
@template-implements IteratorAggregate<int,Author> | ||||
AuthorCollectionIterator | class | PharIo\Manifest | vendor/ |
@template-implements Iterator<int,Author> | ||||
AuthorElement | class | PharIo\Manifest | vendor/ |
|||||
AuthorElementCollection | class | PharIo\Manifest | vendor/ |