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
Name | Type | Namespace | Location | Description | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|
AjaxTestFormPromise | class |
Drupal\ |
core/ |
Test form for ajax_test_form_promise. | 1 | ||
AjaxTestMessageCommandForm | class |
Drupal\ |
core/ |
Form for testing AJAX MessageCommand. | 1 | ||
AlertCommand | class |
Drupal\ |
core/ |
AJAX command for a javascript alert box. | 6 | ||
AliasingResourceTypeRepository | class |
Drupal\ |
core/ |
Provides a repository of resource types with field names that can be aliased. | 2 | ||
AliasManagerInterface | interface |
Drupal\ |
core/ |
Find an alias for a path and vice versa. | 1 | 10 | |
AliasManagerTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\path_alias\AliasManager @group path_alias | |||
AliasPathProcessor | class |
Drupal\ |
core/ |
Processes the inbound path using path alias lookups. | 3 | 2 | |
AliasPathProcessorTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\path_alias\PathProcessor\AliasPathProcessor @group PathProcessor @group path_alias | |||
AliasRepository | class |
Drupal\ |
core/ |
Provides the default path alias lookup operations. | 1 | 1 | 2 |
AliasRepositoryInterface | interface |
Drupal\ |
core/ |
Provides an interface for path alias lookup operations. | 1 | 1 | |
AliasTest | class |
Drupal\ |
core/ |
Tests path alias CRUD and lookup functionality. | |||
AliasWhitelist | class |
Drupal\ |
core/ |
Extends CacheCollector to build the path alias whitelist over time. | 1 | 2 | |
AliasWhitelistInterface | interface |
Drupal\ |
core/ |
Cache the alias whitelist. | 1 | ||
Alignment | class |
Drupal\ |
core/ |
CKEditor 5 Alignment plugin. | 1 | 1 | |
AlignmentPluginTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Alignment @group ckeditor5 @internal | |||
AllowedPackages | class |
Drupal\ |
composer/ |
Determine recursively which packages have been allowed to scaffold files. | |||
AllowedValuesConstraintValidator | class |
Drupal\ |
core/ |
Validates the AllowedValues constraint. | |||
AllowedValuesConstraintValidatorTest | class |
Drupal\ |
core/ |
Tests AllowedValues validation constraint with both valid and invalid values. | |||
AllowToolbarPath | class |
Drupal\ |
core/ |
Cache policy for the toolbar page cache service. | 1 | 2 | |
AllowToolbarPathTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\toolbar\PageCache\AllowToolbarPath @group toolbar | |||
AlreadyInstalledException | class |
Drupal\ |
core/ |
Exception thrown if Drupal is installed already. | |||
AlterableInterface | interface |
Drupal\ |
core/ |
Interface for a query that can be manipulated via an alter hook. | 2 | 11 | |
AlterTest | class |
Drupal\ |
core/ |
Tests the hook_query_alter capabilities of the Select builder. | |||
AlterTest | class |
Drupal\ |
core/ |
Tests hook_form_alter() and hook_form_FORM_ID_alter(). | |||
AlterTest | class |
Drupal\ |
core/ |
Tests alteration of arguments passed to \Drupal::moduleHandler->alter(). | |||
AlwaysAddsAccessPolicy | class |
Drupal\ |
core/ |
||||
AlwaysAltersAccessPolicy | class |
Drupal\ |
core/ |
||||
AmbiguousBundleClassException | class |
Drupal\ |
core/ |
Exception thrown if a bundle class is defined for multiple bundles. | 3 | ||
AmbiguousEntityClassException | class |
Drupal\ |
core/ |
Exception thrown if multiple entity types exist for an entity class. | 1 | 2 | |
Analyze | class |
Drupal\ |
core/ |
Displays analysis information for a view. | |||
Analyzer | class |
Drupal\ |
core/ |
View analyzer plugin manager. | 3 | 2 | |
AnalyzeTest | class |
Drupal\ |
core/ |
Tests the views analyze system. | |||
AnnotatedClassDiscovery | class |
Drupal\ |
core/ |
Defines a discovery mechanism to find annotated plugins in PSR-4 namespaces. | 1 | 8 | |
AnnotatedClassDiscovery | class |
Drupal\ |
core/ |
Defines a discovery mechanism to find annotated plugins in PSR-4 namespaces. | 1 | 4 | |
AnnotatedClassDiscoveryAutomatedProviders | class |
Drupal\ |
core/ |
Determines providers based on a class's and its parent's namespaces. | 1 | ||
AnnotatedClassDiscoveryCachedTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Component\Annotation\Plugin\Discovery\AnnotatedClassDiscovery @group Annotation @runTestsInSeparateProcesses | |||
AnnotatedClassDiscoveryTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Component\Annotation\Plugin\Discovery\AnnotatedClassDiscovery @group Annotation @runTestsInSeparateProcesses | |||
AnnotatedClassDiscoveryTest | class |
Drupal\ |
core/ |
Tests that plugins are correctly discovered using annotated classes. | |||
AnnotatedClassDiscoveryTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Component\Annotation\Plugin\Discovery\AnnotatedClassDiscovery | |||
AnnotationBase | abstract class |
Drupal\ |
core/ |
Provides a base class for classed annotations. | 5 | 4 | |
AnnotationBaseStub | class |
Drupal\ |
core/ |
||||
AnnotationBaseTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Component\Annotation\AnnotationBase @group Annotation | |||
AnnotationBridgeDecorator | class |
Drupal\ |
core/ |
Ensures that all definitions are run through the annotation process. | 3 | ||
AnnotationBridgeDecoratorTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Component\Annotation\Plugin\Discovery\AnnotationBridgeDecorator @group Plugin | |||
AnnotationEnum | final class |
Drupal\ |
core/ |
Plugin annotation @Target("ALL"); | |||
AnnotationEnumInvalid | final class |
Drupal\ |
core/ |
Plugin annotation @Target("ALL"); | |||
AnnotationEnumLiteral | final class |
Drupal\ |
core/ |
Plugin annotation @Target("ALL"); | 1 | ||
AnnotationEnumLiteralInvalid | final class |
Drupal\ |
core/ |
Plugin annotation @Target("ALL"); | |||
AnnotationExtendsAnnotationTargetAll | class |
Drupal\ |
core/ |
||||
AnnotationInterface | interface |
Drupal\ |
core/ |
Defines a common interface for classed annotations. | 3 | 4 |