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 |
|---|---|---|---|---|---|---|---|---|
| ContainerTest | class | Drupal\Tests\Component\DependencyInjection | core/ |
@coversDefaultClass \Drupal\Component\DependencyInjection\Container[[api-linebreak]] @group DependencyInjection | 1 | |||
| ContentEntity | class | Drupal\migrate_drupal\Plugin\migrate\source | core/ |
Source plugin to get content entities from the current version of Drupal. | 1 | |||
| ContentEntity | class | Drupal\migrate_drupal\Plugin\migrate\source | core/ |
Source plugin to get content entities from the current version of Drupal. | 1 | |||
| ContentEntityBase | abstract class | Drupal\Core\Entity | core/ |
Implements Entity Field API specific enhancements to the Entity class. | 18 | 17 | ||
| ContentEntityBase | abstract class | Drupal\Core\Entity | core/ |
Implements Entity Field API specific enhancements to the Entity class. | 18 | 17 | ||
| ContentEntityBase | abstract class | Drupal\Core\Entity | core/ |
Implements Entity Field API specific enhancements to the Entity class. | 18 | 17 | ||
| ContentEntityBase | abstract class | Drupal\Core\Entity | core/ |
Implements Entity Field API specific enhancements to the Entity class. | 18 | 17 | ||
| ContentEntityBase | abstract class | Drupal\Core\Entity | core/ |
Implements Entity Field API specific enhancements to the Entity class. | 18 | 17 | ||
| ContentEntityBase | abstract class | Drupal\Core\Entity | core/ |
Implements Entity Field API specific enhancements to the Entity class. | 18 | 17 | ||
| ContentEntityBaseUnitTest | class | Drupal\Tests\Core\Entity | core/ |
@coversDefaultClass \Drupal\Core\Entity\ContentEntityBase[[api-linebreak]] @group Entity @group Access | ||||
| ContentEntityChangedTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests basic EntityChangedInterface functionality. | ||||
| ContentEntityCloneTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests proper cloning of content entities. | ||||
| ContentEntityConfirmFormBase | abstract class | Drupal\Core\Entity | core/ |
Provides a generic base class for an entity-based confirmation form. | 3 | 2 | ||
| ContentEntityConfirmFormBase | abstract class | Drupal\Core\Entity | core/ |
Provides a generic base class for an entity-based confirmation form. | 3 | 2 | ||
| ContentEntityConfirmFormBase | abstract class | Drupal\Core\Entity | core/ |
Provides a generic base class for an entity-based confirmation form. | 3 | 2 | ||
| ContentEntityConfirmFormBase | abstract class | Drupal\Core\Entity | core/ |
Provides a generic base class for an entity-based confirmation form. | 3 | 2 | ||
| ContentEntityConfirmFormBase | abstract class | Drupal\Core\Entity | core/ |
Provides a generic base class for an entity-based confirmation form. | 3 | 2 | ||
| ContentEntityConfirmFormBase | abstract class | Drupal\Core\Entity | core/ |
Provides a generic base class for an entity-based confirmation form. | 3 | 2 | ||
| ContentEntityConstructorTest | class | Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\source | core/ |
Tests the constructor of the entity content source plugin. | ||||
| ContentEntityDeleteForm | class | Drupal\Core\Entity | core/ |
Provides a generic base class for a content entity deletion form. | 10 | 11 | ||
| ContentEntityDeleteForm | class | Drupal\Core\Entity | core/ |
Provides a generic base class for a content entity deletion form. | 10 | 11 | ||
| ContentEntityDeleteForm | class | Drupal\Core\Entity | core/ |
Provides a generic base class for a content entity deletion form. | 10 | 11 | ||
| ContentEntityDeleteForm | class | Drupal\Core\Entity | core/ |
Provides a generic base class for a content entity deletion form. | 10 | 11 | ||
| ContentEntityDeleteForm | class | Drupal\Core\Entity | core/ |
Provides a generic base class for a content entity deletion form. | 10 | 11 | ||
| ContentEntityDeleteForm | class | Drupal\Core\Entity | core/ |
Provides a generic base class for a content entity deletion form. | 10 | 11 | ||
| ContentEntityDenormalizer | final class | Drupal\jsonapi\Normalizer | core/ |
Converts a JSON:API array structure into a Drupal entity object. | 2 | |||
| ContentEntityDenormalizer | final class | Drupal\jsonapi\Normalizer | core/ |
Converts a JSON:API array structure into a Drupal entity object. | 2 | |||
| ContentEntityDenormalizer | final class | Drupal\jsonapi\Normalizer | core/ |
Converts a JSON:API array structure into a Drupal entity object. | 2 | |||
| ContentEntityDeriver | class | Drupal\migrate_drupal\Plugin\migrate\source | core/ |
Deriver for content entity source plugins. | ||||
| ContentEntityFieldMethodInvocationOrderTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests correct field method invocation order. | ||||
| ContentEntityForm | class | Drupal\Core\Entity | core/ |
Entity form variant for content entity types. | 16 | 15 | ||
| ContentEntityForm | class | Drupal\Core\Entity | core/ |
Entity form variant for content entity types. | 16 | 15 | ||
| ContentEntityForm | class | Drupal\Core\Entity | core/ |
Entity form variant for content entity types. | 16 | 15 | ||
| ContentEntityForm | class | Drupal\Core\Entity | core/ |
Entity form variant for content entity types. | 16 | 15 | ||
| ContentEntityForm | class | Drupal\Core\Entity | core/ |
Entity form variant for content entity types. | 16 | 15 | ||
| ContentEntityForm | class | Drupal\Core\Entity | core/ |
Entity form variant for content entity types. | 16 | 15 | ||
| ContentEntityFormCorrectUserInputMappingOnFieldDeltaElementsTest | class | Drupal\FunctionalTests\Entity | core/ |
Tests the correct mapping of user input on the correct field delta elements. | ||||
| ContentEntityFormFieldValidationFilteringTest | class | Drupal\FunctionalTests\Entity | core/ |
Tests field validation filtering on content entity forms. | ||||
| ContentEntityFormInterface | interface | Drupal\Core\Entity | core/ |
Defines a common interface for content entity form classes. | 1 | 4 | ||
| ContentEntityFormInterface | interface | Drupal\Core\Entity | core/ |
Defines a common interface for content entity form classes. | 1 | 4 | ||
| ContentEntityFormInterface | interface | Drupal\Core\Entity | core/ |
Defines a common interface for content entity form classes. | 1 | 4 | ||
| ContentEntityFormInterface | interface | Drupal\Core\Entity | core/ |
Defines a common interface for content entity form classes. | 1 | 4 | ||
| ContentEntityFormInterface | interface | Drupal\Core\Entity | core/ |
Defines a common interface for content entity form classes. | 1 | 4 | ||
| ContentEntityFormInterface | interface | Drupal\Core\Entity | core/ |
Defines a common interface for content entity form classes. | 1 | 4 | ||
| ContentEntityHasChangesTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests ContentEntityBase::hasTranslationChanges(). | ||||
| ContentEntityInterface | interface | Drupal\Core\Entity | core/ |
Defines a common interface for all content entity objects. | 17 | 74 | ||
| ContentEntityInterface | interface | Drupal\Core\Entity | core/ |
Defines a common interface for all content entity objects. | 17 | 74 | ||
| ContentEntityInterface | interface | Drupal\Core\Entity | core/ |
Defines a common interface for all content entity objects. | 17 | 74 | ||
| ContentEntityInterface | interface | Drupal\Core\Entity | core/ |
Defines a common interface for all content entity objects. | 17 | 74 | ||
| ContentEntityInterface | interface | Drupal\Core\Entity | core/ |
Defines a common interface for all content entity objects. | 17 | 74 |
Pagination
- Previous page
- Page 73
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.