Classes, traits, and interfaces - 11.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 1519
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
AjaxInGroupTest | class | Drupal\FunctionalJavascriptTests\Ajax | core/ |
Tests that form elements in groups work correctly with AJAX. | ||||
AjaxMaintenanceModeTest | class | Drupal\FunctionalJavascriptTests\Ajax | core/ |
Tests maintenance message during an AJAX call. | ||||
AjaxPageState | class | Drupal\Core\StackMiddleware | core/ |
Expands the compressed ajax_page_state query parameter into an array. | 1 | 2 | ||
AjaxPageStateTest | class | Drupal\Tests\Core\StackMiddleware | core/ |
@coversDefaultClass \Drupal\Core\StackMiddleware\AjaxPageState[[api-linebreak]] @group StackMiddleware | ||||
AjaxPageStateTest | class | Drupal\Tests\system\Functional\Render | core/ |
Performs tests for the effects of the ajax_page_state query parameter. | ||||
AjaxRenderer | class | Drupal\Core\Render\MainContent | core/ |
Default main content renderer for Ajax requests. | 1 | 2 | ||
AjaxRendererTest | class | Drupal\Tests\Core\Controller | core/ |
@coversDefaultClass \Drupal\Core\Render\MainContent\AjaxRenderer[[api-linebreak]] @group Ajax | ||||
AjaxResponse | class | Drupal\Core\Ajax | core/ |
JSON response object for AJAX requests. | 2 | 48 | ||
AjaxResponseAttachmentsProcessor | class | Drupal\Core\Ajax | core/ |
Processes attachments of AJAX responses. | 2 | |||
AjaxResponseSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Response subscriber to handle AJAX responses. | 4 | 2 | ||
AjaxResponseTest | class | Drupal\Tests\Core\Ajax | core/ |
@coversDefaultClass \Drupal\Core\Ajax\AjaxResponse[[api-linebreak]] @group Ajax | ||||
AjaxTest | class | Drupal\FunctionalJavascriptTests\Ajax | core/ |
Tests AJAX responses. | ||||
AjaxTestCommandReturnPromise | class | Drupal\ajax_test\Ajax | core/ |
Test Ajax command. | 1 | |||
AjaxTestController | class | Drupal\ajax_test\Controller | core/ |
Provides content for dialog tests. | 3 | |||
AjaxTestDialogForm | class | Drupal\ajax_test\Form | core/ |
Dummy form for testing DialogRenderer with _form routes. | ||||
AjaxTestFocusFirstForm | class | Drupal\ajax_test\Form | core/ |
Form for testing AJAX FocusFirstCommand. | 1 | |||
AjaxTestForm | class | Drupal\ajax_test\Form | core/ |
Dummy form for testing DialogRenderer with _form routes. | 1 | |||
AjaxTestFormPromise | class | Drupal\ajax_test\Form | core/ |
Test form for ajax_test_form_promise. | 1 | |||
AjaxTestImageEffect | class | Drupal\image_module_test\Plugin\ImageEffect | core/ |
Provides a test effect using Ajax in the configuration form. | ||||
AjaxTestMessageCommandForm | class | Drupal\ajax_test\Form | core/ |
Form for testing AJAX MessageCommand. | 1 | |||
AjaxWaitTest | class | Drupal\FunctionalJavascriptTests | core/ |
Tests that unnecessary or untracked XHRs will cause a test failure. | ||||
AlertCommand | class | Drupal\Core\Ajax | core/ |
AJAX command for a javascript alert box. | 7 | |||
AlertsJsonFeedTest | class | Drupal\Tests\announcements_feed\FunctionalJavascript | core/ |
Test the access announcement according to json feed changes. | ||||
AliasManager | class | Drupal\path_alias | core/ |
The default alias manager implementation. | 3 | 2 | ||
AliasManagerInterface | interface | Drupal\path_alias | core/ |
Find an alias for a path and vice versa. | 3 | 10 | ||
AliasManagerTest | class | Drupal\Tests\path_alias\Unit | core/ |
@coversDefaultClass \Drupal\path_alias\AliasManager[[api-linebreak]] @group path_alias | ||||
AliasPathProcessor | class | Drupal\path_alias\PathProcessor | core/ |
Processes the inbound and outbound path using path alias lookups. | 3 | 2 | ||
AliasPathProcessorTest | class | Drupal\Tests\path_alias\Unit\PathProcessor | core/ |
@coversDefaultClass \Drupal\path_alias\PathProcessor\AliasPathProcessor[[api-linebreak]] @group PathProcessor @group path_alias | ||||
AliasPrefixList | class | Drupal\path_alias | core/ |
Cache a list of valid alias prefixes. | 1 | 1 | 2 | |
AliasPrefixListInterface | interface | Drupal\path_alias | core/ |
Cache a list of valid alias prefixes. | 2 | |||
AliasRepository | class | Drupal\path_alias | core/ |
Provides the default path alias lookup operations. | 1 | 1 | 2 | |
AliasRepositoryInterface | interface | Drupal\path_alias | core/ |
Provides an interface for path alias lookup operations. | 1 | 1 | ||
AliasTest | class | Drupal\Tests\path_alias\Kernel | core/ |
Tests path alias CRUD and lookup functionality. | ||||
AliasWhitelist | in drupal:11.1.0 and is removed from drupal:12.0.0. Use \Drupal\path_alias\AliasPrefixList instead. |
class | Drupal\path_alias | core/ |
Cache a list of valid alias prefixes. | 2 | ||
AliasWhitelistInterface | in drupal:11.1.0 and is removed from drupal:12.0.0. Use \Drupal\path_alias\AliasPrefixListInterface instead. |
interface | Drupal\path_alias | core/ |
Cache a list of valid alias prefixes. | |||
Alignment | class | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
CKEditor 5 Alignment plugin. | 1 | 1 | ||
AlignmentPluginTest | class | Drupal\Tests\ckeditor5\Unit | core/ |
@coversDefaultClass \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Alignment[[api-linebreak]] @group ckeditor5 @internal | ||||
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 | |||
AllowedScaffoldPackagesValidator | final class | Drupal\package_manager\Validator | core/ |
Validates the list of packages that are allowed to scaffold files. | ||||
AllowedScaffoldPackagesValidatorTest | class | Drupal\Tests\package_manager\Kernel | core/ |
@covers \Drupal\package_manager\Validator\AllowedScaffoldPackagesValidator[[api-linebreak]] @group package_manager @internal | ||||
AllowedValuesConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Checks for the value being allowed. | 1 | |||
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/ |
@coversDefaultClass \Drupal\toolbar\PageCache\AllowToolbarPath[[api-linebreak]] @group toolbar | ||||
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 | 21 | ||
AlterContentMiddleware | final class | Drupal\http_middleware_test\StackMiddleware | core/ |
Alters the response before content length is calculated. | 2 |
Pagination
- Previous page
- Page 4
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.