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 |
|---|---|---|---|---|---|---|---|---|
| Alignment | class | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
CKEditor 5 Alignment plugin. | 1 | 1 | ||
| AlignmentPluginTest | class | Drupal\Tests\ckeditor5\Unit | core/ |
Tests Drupal\ckeditor5\Plugin\CKEditor5Plugin\Alignment. | ||||
| AllExceptHostEntity | class | Drupal\entity_reference_test\Plugin\EntityReferenceSelection | core/ |
Allows access to all entities except for the host entity. | ||||
| AllowDirectWrite | final class | Drupal\package_manager\Attribute | core/ |
Identifies sandbox managers which can operate on the running code base. | 3 | |||
| AllowedPackages | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Determine recursively which packages have been allowed to scaffold files. | ||||
| AllowedScaffoldPackagesValidator | final class | Drupal\package_manager\Validator | core/ |
Validates the list of packages that are allowed to scaffold files. | 1 | |||
| AllowedScaffoldPackagesValidatorTest | class | Drupal\Tests\package_manager\Kernel | core/ |
Tests Allowed Scaffold Packages Validator. | ||||
| AllowedValuesConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Checks for the value being allowed. | 2 | |||
| AllowedValuesConstraintValidator | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Validates the AllowedValues constraint. | ||||
| AllowedValuesConstraintValidatorTest | class | Drupal\KernelTests\Core\TypedData | core/ |
Tests AllowedValues validation constraint with both valid and invalid values. | ||||
| AllowListConfigStorage | final class | Drupal\Core\Recipe | core/ |
A read-only storage wrapper that only allows access to certain config names. | ||||
| AllowToolbarPath | class | Drupal\toolbar\PageCache | core/ |
Cache policy for the toolbar page cache service. | 1 | 2 | ||
| AllowToolbarPathTest | class | Drupal\Tests\toolbar\Unit\PageCache | core/ |
Tests Drupal\toolbar\PageCache\AllowToolbarPath. | ||||
| AlreadyInstalledException | class | Drupal\Core\Installer\Exception | core/ |
Exception thrown if Drupal is installed already. | 1 | |||
| AlterableInterface | interface | Drupal\Core\Database\Query | core/ |
Interface for a query that can be manipulated via an alter hook. | 2 | 15 | ||
| AlterContentMiddleware | final class | Drupal\http_middleware_test\StackMiddleware | core/ |
Alters the response before content length is calculated. | 2 | |||
| AlterTest | class | Drupal\Tests\system\Kernel\Common | core/ |
Tests alteration of arguments passed to \Drupal::moduleHandler->alter(). | ||||
| AlterTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests hook_form_alter() and hook_form_FORM_ID_alter(). | ||||
| AlterTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the hook_query_alter capabilities of the Select builder. | ||||
| AltTextContainsLlamasConstraint | final class | Drupal\image_field_property_constraint_validation\Plugin\Validation\Constraint | core/ |
Provides a Contains Llamas constraint. | ||||
| AltTextContainsLlamasConstraintValidator | final class | Drupal\image_field_property_constraint_validation\Plugin\Validation\Constraint | core/ |
Validates the alt text contains llamas. | ||||
| AlwaysAddsAccessPolicy | class | Drupal\Tests\Core\Session | core/ |
A test access policy that adds a permission. | ||||
| AlwaysAltersAccessPolicy | class | Drupal\Tests\Core\Session | core/ |
A test access policy that alters an existing policy. | ||||
| AmbiguousBundleClassException | class | Drupal\Core\Entity\Exception | core/ |
Exception thrown if a bundle class is defined for multiple bundles. | 3 | |||
| AmbiguousEntityClassException | class | Drupal\Core\Entity\Exception | core/ |
Exception thrown if multiple entity types exist for an entity class. | 1 | 2 | ||
| AMissingTargetAlter | class | Drupal\aaa_hook_order_test\Hook | core/ |
Provides hook implementations for testing the alteration of hooks. | 2 | |||
| AMissingTargetHooks | class | Drupal\aaa_hook_order_test\Hook | core/ |
Contains hook implementations. | 2 | |||
| Analyze | class | Drupal\views_ui\Form\Ajax | core/ |
Displays analysis information for a view. | ||||
| Analyzer | class | Drupal\views | core/ |
View analyzer plugin manager. | 4 | 2 | ||
| AnalyzeTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests the views analyze system. | ||||
| AnnotatedClassDiscovery | class | Drupal\Core\Plugin\Discovery | core/ |
Defines a discovery mechanism to find annotated plugins in PSR-4 namespaces. | 1 | 6 | ||
| AnnotatedClassDiscovery | class | Drupal\Component\Annotation\Plugin\Discovery | core/ |
Defines a discovery mechanism to find annotated plugins in PSR-4 namespaces. | 1 | 4 | ||
| AnnotatedClassDiscoveryAutomatedProviders | class | Drupal\migrate\Plugin\Discovery | core/ |
Determines providers based on a class's and its parent's namespaces. | ||||
| AnnotatedClassDiscoveryCachedTest | class | Drupal\Tests\Component\Annotation | core/ |
Tests Drupal\Component\Annotation\Plugin\Discovery\AnnotatedClassDiscovery. | ||||
| AnnotatedClassDiscoveryTest | class | Drupal\Tests\Component\Annotation | core/ |
Tests Drupal\Component\Annotation\Plugin\Discovery\AnnotatedClassDiscovery. | ||||
| AnnotatedClassDiscoveryTest | class | Drupal\Tests\Component\Plugin\Discovery | core/ |
Tests Drupal\Component\Annotation\Plugin\Discovery\AnnotatedClassDiscovery. | ||||
| AnnotatedClassDiscoveryTest | class | Drupal\KernelTests\Core\Plugin\Discovery | core/ |
Tests that plugins are correctly discovered using annotated classes. | ||||
| AnnotatedDiscoveryAutomatedProvidersTrait | trait | Drupal\migrate\Plugin\Discovery | core/ |
Provides method for annotation discovery with multiple providers. | ||||
| Annotation | class | Drupal\Component\Annotation\Doctrine | core/ |
Annotations class. | 1 | |||
| AnnotationBase | abstract class | Drupal\Component\Annotation | core/ |
Provides a base class for classed annotations. | 5 | 4 | ||
| AnnotationBaseStub | class | Drupal\Tests\Component\Annotation | core/ |
|||||
| AnnotationBaseTest | class | Drupal\Tests\Component\Annotation | core/ |
Tests Drupal\Component\Annotation\AnnotationBase. | ||||
| AnnotationBridgeDecorator | class | Drupal\Component\Annotation\Plugin\Discovery | core/ |
Ensures that all definitions are run through the annotation process. | 2 | |||
| AnnotationBridgeDecoratorTest | class | Drupal\Tests\Component\Annotation\Plugin\Discovery | core/ |
Tests Drupal\Component\Annotation\Plugin\Discovery\AnnotationBridgeDecorator. | ||||
| AnnotationEnum | final class | Drupal\Tests\Component\Annotation\Doctrine\Fixtures | core/ |
Plugin annotation @Target("ALL"); | ||||
| AnnotationEnumInvalid | final class | Drupal\Tests\Component\Annotation\Doctrine\Fixtures | core/ |
Plugin annotation @Target("ALL"); | ||||
| AnnotationEnumLiteral | final class | Drupal\Tests\Component\Annotation\Doctrine\Fixtures | core/ |
Plugin annotation @Target("ALL"); | 1 | |||
| AnnotationEnumLiteralInvalid | final class | Drupal\Tests\Component\Annotation\Doctrine\Fixtures | core/ |
Plugin annotation @Target("ALL"); | ||||
| AnnotationException | class | Drupal\Component\Annotation\Doctrine | core/ |
Description of AnnotationException | 1 | 1 | ||
| AnnotationExtendsAnnotationTargetAll | class | Drupal\Tests\Component\Annotation\Doctrine | core/ |
Pagination
- Previous page
- Page 5
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.