Classes, traits, and interfaces - 9.5.x - 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 1523
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
CommentTokenReplaceTest | class | Drupal\Tests\comment\Functional | core/ |
Tests comment token replacement. | ||||
CommentTranslationHandler | class | Drupal\comment | core/ |
Defines the translation handler for comments. | ||||
CommentTranslationUITest | class | Drupal\Tests\comment\Functional | core/ |
Tests the Comment Translation UI. | ||||
CommentType | class | Drupal\comment\Plugin\migrate\source | core/ |
Drupal 6/7 comment types source from database. | ||||
CommentType | class | Drupal\comment\Entity | core/ |
Defines the comment type entity. | 26 | |||
CommentTypeDeleteForm | class | Drupal\comment\Form | core/ |
Provides a confirmation form for deleting a comment type entity. | ||||
CommentTypeForm | class | Drupal\comment | core/ |
Base form handler for comment type edit forms. | ||||
CommentTypeHalJsonAnonTest | class | Drupal\Tests\hal\Functional\comment | core/ |
@group hal @group legacy | ||||
CommentTypeHalJsonBasicAuthTest | class | Drupal\Tests\hal\Functional\comment | core/ |
@group hal @group legacy | ||||
CommentTypeHalJsonCookieTest | class | Drupal\Tests\hal\Functional\comment | core/ |
@group hal @group legacy | ||||
CommentTypeInterface | interface | Drupal\comment | core/ |
Provides an interface defining a comment type entity. | 1 | 1 | ||
CommentTypeJsonAnonTest | class | Drupal\Tests\comment\Functional\Rest | core/ |
@group rest | ||||
CommentTypeJsonBasicAuthTest | class | Drupal\Tests\comment\Functional\Rest | core/ |
@group rest | ||||
CommentTypeJsonCookieTest | class | Drupal\Tests\comment\Functional\Rest | core/ |
@group rest | ||||
CommentTypeListBuilder | class | Drupal\comment | core/ |
Defines a class to build a listing of comment type entities. | ||||
CommentTypeRequirementsTest | class | Drupal\Tests\comment\Kernel\Plugin\migrate\source | core/ |
Tests check requirements for comment type source plugin. | ||||
CommentTypeResourceTestBase | abstract class | Drupal\Tests\comment\Functional\Rest | core/ |
ResourceTestBase for CommentType entity. | 9 | 3 | ||
CommentTypeTest | class | Drupal\Tests\comment\Kernel\Plugin\migrate\source | core/ |
Tests the comment type source plugin. | ||||
CommentTypeTest | class | Drupal\Tests\comment\Functional | core/ |
Ensures that comment type functions work correctly. | ||||
CommentTypeTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "CommentType" config entity type. | ||||
CommentTypeXmlAnonTest | class | Drupal\Tests\comment\Functional\Rest | core/ |
@group rest | ||||
CommentTypeXmlBasicAuthTest | class | Drupal\Tests\comment\Functional\Rest | core/ |
@group rest | ||||
CommentTypeXmlCookieTest | class | Drupal\Tests\comment\Functional\Rest | core/ |
@group rest | ||||
CommentUninstallTest | class | Drupal\Tests\comment\Kernel | core/ |
Tests comment module uninstall. | ||||
CommentUserNameTest | class | Drupal\Tests\comment\Kernel\Views | core/ |
Tests comment user name field. | ||||
CommentValidationTest | class | Drupal\Tests\comment\Kernel | core/ |
Tests comment validation constraints. | ||||
CommentViewBuilder | class | Drupal\comment | core/ |
View builder handler for comments. | ||||
CommentViewsData | class | Drupal\comment | core/ |
Provides views data for the comment entity type. | ||||
CommentViewsFieldAccessTest | class | Drupal\Tests\comment\Kernel\Views | core/ |
Tests base field access in Views for the comment entity. | ||||
CommentViewsKernelTestBase | abstract class | Drupal\Tests\comment\Kernel\Views | core/ |
Provides a common test base for comment views tests. | 2 | |||
CommentWidget | class | Drupal\comment\Plugin\Field\FieldWidget | core/ |
Provides a default comment widget. | ||||
CommentXmlAnonTest | class | Drupal\Tests\comment\Functional\Rest | core/ |
@group rest | ||||
CommentXmlBasicAuthTest | class | Drupal\Tests\comment\Functional\Rest | core/ |
@group rest | ||||
CommentXmlCookieTest | class | Drupal\Tests\comment\Functional\Rest | core/ |
@group rest | ||||
CommonCollectionFilterAccessTestPatternsTrait | trait | Drupal\Tests\jsonapi\Traits | core/ |
Provides common filter access control tests. | 9 | |||
CommonDataConverter | class | Drupal\rdf | core/ |
Contains methods for common data conversions. | ||||
CommonTestController | class | Drupal\common_test\Controller | core/ |
Controller routines for common_test routes. | ||||
CompiledRoute | class | Drupal\Core\Routing | core/ |
A compiled route contains derived information from a route object. | 1 | |||
CompiledRouteLegacyTest | class | Drupal\Tests\Core\Routing | core/ |
@coversDefaultClass \Drupal\Core\Routing\CompiledRoute @group Routing @group legacy | ||||
ComplexDataConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Complex data constraint. | ||||
ComplexDataConstraintValidator | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Validates complex data. | ||||
ComplexDataConstraintValidatorTest | class | Drupal\KernelTests\Core\TypedData | core/ |
Tests ComplexData validation with both valid and invalid values. | ||||
ComplexDataDefinitionBase | abstract class | Drupal\Core\TypedData | core/ |
Base class for complex data definitions. | 2 | 1 | ||
ComplexDataDefinitionInterface | interface | Drupal\Core\TypedData | core/ |
Interface for complex data definitions. | 3 | 8 | ||
ComplexDataInterface | interface | Drupal\Core\TypedData | core/ |
Interface for complex data; i.e. data containing named and typed properties. | 4 | 15 | ||
ComplexDataNormalizer | class | Drupal\serialization\Normalizer | core/ |
Converts the Drupal entity object structures to a normalized array. | 3 | 1 | 2 | |
ComplexDataNormalizerTest | class | Drupal\Tests\serialization\Unit\Normalizer | core/ |
@coversDefaultClass \Drupal\serialization\Normalizer\ComplexDataNormalizer @group serialization | ||||
ComplexTestType | class | Drupal\workflow_type_test\Plugin\WorkflowType | core/ |
Test workflow type. | ||||
ComplexTestTypeConfigureForm | class | Drupal\workflow_type_test\Form | core/ |
Form to configure the complex test workflow type. | ||||
ComplexTestTypeStateForm | class | Drupal\workflow_type_test\Form | core/ |
Form to configure the complex test workflow states. |
Pagination
- Previous page
- Page 24
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.