Classes, traits, and interfaces - main - drupal
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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| ConnectionUnitTest | class | Drupal\Tests\pgsql\Kernel\pgsql | core/ |
PostgreSQL-specific connection unit tests. | ||||
| ConnectionUnitTest | class | Drupal\Tests\mysql\Kernel\mysql | core/ |
MySQL-specific connection unit tests. | 1 | 1 | ||
| ConsoleCompilerPass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Compiler pass for console commands registered via #[AsCommand] attributes. | 2 | |||
| ConsoleExampleCommand | class | Drupal\console_test\Command | core/ |
An example command. | 1 | |||
| ConsoleExampleConfigureCommand | class | Drupal\console_test\Command | core/ |
An example command using configure() instead of the AsCommand attribute. | 1 | |||
| ConsoleExamplePrivateCommand | class | Drupal\console_test\Command | core/ |
An example private command. | 1 | |||
| ConsoleInputCollector | final class | Drupal\Core\Recipe | core/ |
Collects input values for recipes from the command line. | 2 | |||
| ConsoleSubExampleCommand | class | Drupal\console_test\Command\Sub | core/ |
An example command in a subdirectory. | ||||
| ConsoleSubscriber | class | Drupal\Core\Command\EventSubscriber | core/ |
Set a logger so that log messages appear in console output. | ||||
| ConsoleTest | class | Drupal\KernelTests\Core\Console | core/ |
Tests integration with Symfony Console. | ||||
| ConsoleTestHooks | class | Drupal\console_test\Hook | core/ |
Hook implementations for the Console test module. | ||||
| Constraint | class | Drupal\Core\Validation\Attribute | core/ |
Defines a Constraint attribute object. | 106 | |||
| Constraint | class | Drupal\Core\Validation\Annotation | core/ |
Defines a validation constraint annotation object. | ||||
| Constraint | class | Drupal\Component\Version | core/ |
A value object representing a Drupal version constraint. | 3 | |||
| ConstraintFactory | class | Drupal\Core\Validation | core/ |
Constraint plugin factory. | 1 | |||
| ConstraintFactoryTest | class | Drupal\KernelTests\Core\Validation | core/ |
Tests Drupal\Core\Validation\ConstraintFactory. | ||||
| ConstraintManager | class | Drupal\Core\Validation | core/ |
Constraint plugin manager. | 9 | 2 | ||
| ConstraintTest | class | Drupal\Tests\Component\Version | core/ |
Tests Drupal\Component\Version\Constraint. | ||||
| ConstraintValidatorFactory | class | Drupal\Core\Validation | core/ |
Defines a constraint validator factory that works with container injection. | 3 | |||
| ConstraintViolationBuilder | class | Drupal\Core\Validation | core/ |
A constraint violation builder for the basic Symfony validator. | ||||
| ContactCategory | class | Drupal\contact\Plugin\migrate\source | core/ |
Drupal 6/7 contact category source from database. | 1 | |||
| ContactCategoryTest | class | Drupal\Tests\contact\Kernel\Plugin\migrate\source | core/ |
Tests D6 contact category source plugin. | ||||
| ContactController | class | Drupal\contact\Controller | core/ |
Controller routines for contact routes. | ||||
| ContactFieldsTest | class | Drupal\Tests\contact\Kernel\Views | core/ |
Tests that no storage is created for the contact_message entity. | ||||
| ContactForm | class | Drupal\contact\Entity | core/ |
Defines the contact form entity. | 10 | |||
| 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 | |||
| ContactFormHooks | class | Drupal\contact\Hook | core/ |
Form hook implementations for Contact module. | 1 | |||
| ContactFormInterface | interface | Drupal\contact | core/ |
Provides an interface defining a contact form entity. | 1 | 5 | ||
| ContactFormJsonAnonTest | class | Drupal\Tests\contact\Functional\Rest | core/ |
Tests Contact Form Json Anon. | ||||
| ContactFormJsonBasicAuthTest | class | Drupal\Tests\contact\Functional\Rest | core/ |
Tests Contact Form Json Basic Auth. | ||||
| ContactFormJsonCookieTest | class | Drupal\Tests\contact\Functional\Rest | core/ |
Tests Contact Form Json Cookie. | ||||
| ContactFormListBuilder | class | Drupal\contact | core/ |
Defines a class to build a listing of contact form entities. | 1 | |||
| ContactFormResourceTestBase | abstract class | Drupal\Tests\contact\Functional\Rest | core/ |
Resource test base for the ContactForm entity. | 6 | |||
| ContactFormTest | class | Drupal\Tests\contact\Functional\Jsonapi | core/ |
JSON:API integration test for the "ContactForm" config entity type. | ||||
| ContactFormValidationTest | class | Drupal\Tests\contact\Kernel | core/ |
Tests validation of contact_form entities. | ||||
| ContactFormXmlAnonTest | class | Drupal\Tests\contact\Functional\Rest | core/ |
Tests Contact Form Xml Anon. | ||||
| ContactFormXmlBasicAuthTest | class | Drupal\Tests\contact\Functional\Rest | core/ |
Tests Contact Form Xml Basic Auth. | ||||
| ContactFormXmlCookieTest | class | Drupal\Tests\contact\Functional\Rest | core/ |
Tests Contact Form Xml Cookie. | ||||
| ContactHooks | class | Drupal\contact\Hook | core/ |
Hook implementations for contact. | 1 | |||
| ContactLanguageTest | class | Drupal\Tests\contact\Functional | core/ |
Tests contact messages with language module. | ||||
| ContactLink | class | Drupal\contact\Plugin\views\field | core/ |
Defines a field that links to the user contact page, if access is permitted. | 1 | |||
| ContactLinkTest | class | Drupal\Tests\contact\Unit | core/ |
Tests Drupal\contact\Plugin\views\field\ContactLink. | ||||
| ContactLinkTest | class | Drupal\Tests\contact\Functional\Views | core/ |
Tests the contact link field. | ||||
| 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 | |||
| ContactPersonalTest | class | Drupal\Tests\contact\Functional | core/ |
Tests personal contact form functionality. | ||||
| ContactSettings | class | Drupal\contact\Plugin\migrate\source | core/ |
Drupal 6/7 contact settings source from database. | 1 | |||
| ContactSettingsTest | class | Drupal\Tests\contact\Kernel\Plugin\migrate\source\d6 | core/ |
Tests D6 contact settings source plugin. |
Pagination
- Previous page
- Page 38
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.