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 |
---|---|---|---|---|---|---|---|---|
ConstraintManager | class | Drupal\Core\Validation | core/ |
Constraint plugin manager. | 4 | |||
ConstraintRequirement | final class | PHPUnit\Metadata\Version | vendor/ |
@psalm-immutable | 2 | |||
ConstraintValidator | abstract class | Symfony\Component\Validator | vendor/ |
Base class for constraint validators. | 113 | 113 | ||
ConstraintValidatorFactory | class | Symfony\Component\Validator | vendor/ |
Default implementation of the ConstraintValidatorFactoryInterface. | 1 | 1 | ||
ConstraintValidatorFactory | class | Drupal\Core\Validation | core/ |
Defines a constraint validator factory that works with container injection. | 2 | |||
ConstraintValidatorFactoryInterface | interface | Symfony\Component\Validator | vendor/ |
Specifies an object able to return the correct ConstraintValidatorInterface instance given a Constraint object. | 2 | 4 | ||
ConstraintValidatorInterface | interface | Symfony\Component\Validator | vendor/ |
@author Bernhard Schussek <bschussek@gmail.com> | 1 | 2 | ||
ConstraintValidatorTestCase | abstract class | Symfony\Component\Validator\Test | vendor/ |
A test case to ease testing Constraint Validators. | ||||
ConstraintViolation | class | Symfony\Component\Validator | vendor/ |
Default implementation of {@ConstraintViolationInterface}. | 11 | |||
ConstraintViolationAssertion | final class | Symfony\Component\Validator\Test | vendor/ |
|||||
ConstraintViolationBuilder | class | Symfony\Component\Validator\Violation | vendor/ |
Default implementation of {@link ConstraintViolationBuilderInterface}. | 1 | |||
ConstraintViolationBuilder | class | Drupal\Core\Validation | core/ |
A constraint violation builder for the basic Symfony validator. | ||||
ConstraintViolationBuilderInterface | interface | Symfony\Component\Validator\Violation | vendor/ |
Builds {@link \Symfony\Component\Validator\ConstraintViolationInterface} objects. | 2 | 4 | ||
ConstraintViolationInterface | interface | Symfony\Component\Validator | vendor/ |
A violation of a constraint that happened during validation. | 1 | 16 | ||
ConstraintViolationList | class | Symfony\Component\Validator | vendor/ |
Default implementation of {@ConstraintViolationListInterface}. | 1 | 14 | ||
ConstraintViolationListInterface | interface | Symfony\Component\Validator | vendor/ |
A list of constraint violations. | 2 | 29 | ||
ConstraintViolationListNormalizer | final class | Symfony\Component\Serializer\Normalizer | vendor/ |
A normalizer that normalizes a ConstraintViolationListInterface instance. | 1 | |||
ConstraintViolationListNormalizerContextBuilder | final class | Symfony\Component\Serializer\Context\Normalizer | vendor/ |
A helper providing autocompletion for available ConstraintViolationList options. | ||||
ConstructorNameSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\NamingConventions | vendor/ |
|||||
ConstructorTrait | trait | Symfony\Component\DependencyInjection\Loader\Configurator\Traits | vendor/ |
|||||
ConstStub | class | Symfony\Component\VarDumper\Caster | vendor/ |
Represents a PHP constant and its value. | 5 | |||
ConstTypeNode | class | PHPStan\PhpDocParser\Ast\Type | vendor/ |
6 | ||||
Const_ | class | PhpParser\Node\Stmt | vendor/ |
|||||
Const_ | class | PhpParser\Node | vendor/ |
1 | ||||
ContactCategory | class | Drupal\contact\Plugin\migrate\source | core/ |
Drupal 6/7 contact category source from database. | ||||
ContactController | class | Drupal\contact\Controller | core/ |
Controller routines for contact routes. | ||||
ContactForm | class | Drupal\contact\Entity | core/ |
Defines the contact form entity. | 2 | |||
ContactFormAccessControlHandler | class | Drupal\contact | core/ |
Defines the access control handler for the contact form entity type. | 1 | |||
ContactFormEditForm | class | Drupal\contact | core/ |
Base form for contact form edit forms. | 1 | |||
ContactFormInterface | interface | Drupal\contact | core/ |
Provides an interface defining a contact form entity. | 1 | 2 | ||
ContactFormListBuilder | class | Drupal\contact | core/ |
Defines a class to build a listing of contact form entities. | 1 | |||
ContactHooks | class | Drupal\contact\Hook | core/ |
Hook implementations for contact. | ||||
ContactLink | class | Drupal\contact\Plugin\views\field | core/ |
Defines a field that links to the user contact page, if access is permitted. | ||||
ContactMessageAccessControlHandler | class | Drupal\contact | core/ |
Defines the access control handler for the message form entity type. | 1 | |||
ContactMessageResource | class | Drupal\contact\Plugin\rest\resource | core/ |
Customizes the entity REST Resource plugin for Contact's Message entities. | 1 | |||
ContactPageAccess | class | Drupal\contact\Access | core/ |
Access check for contact_personal_page route. | 2 | |||
ContactSettings | class | Drupal\contact\Plugin\migrate\source | core/ |
Drupal 6/7 contact settings source from database. | ||||
ContactViewsHooks | class | Drupal\contact\Hook | core/ |
Hook implementations for contact. | ||||
Container | class | Drupal\Core\Render\Element | core/ |
Provides a render element that wraps child elements in a container. | 1 | |||
Container | class | Symfony\Component\DependencyInjection | vendor/ |
Container is a dependency injection container. | 1 | 15 | ||
Container | abstract class | WebDriver | vendor/ |
Abstract WebDriver\Container class | 3 | |||
Container | class | Drupal\Core\DependencyInjection | core/ |
Extends the container to prevent serialization. | ||||
Container | class | Drupal\Component\DependencyInjection | core/ |
Provides a container optimized for Drupal's needs. | 2 | 1 | ||
ContainerBag | class | Symfony\Component\DependencyInjection\ParameterBag | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | ||||
ContainerBagInterface | interface | Symfony\Component\DependencyInjection\ParameterBag | vendor/ |
ContainerBagInterface is the interface implemented by objects that manage service container parameters. | 1 | |||
ContainerBuilder | class | Symfony\Component\DependencyInjection | vendor/ |
ContainerBuilder is a DI container that provides an API to easily describe services. | 2 | 111 | ||
ContainerBuilder | class | Drupal\Core\DependencyInjection | core/ |
Drupal's dependency injection container builder. | 19 | |||
ContainerCommandLoader | class | Symfony\Component\Console\CommandLoader | vendor/ |
Loads commands from a PSR-11 container. | 1 | |||
ContainerConfigurator | class | Symfony\Component\DependencyInjection\Loader\Configurator | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 6 | |||
ContainerConstraintValidatorFactory | class | Symfony\Component\Validator | vendor/ |
Uses a service container to create constraint validators. |