Classes, traits, and interfaces - 8.9.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 1511
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
AggregatorTestBase | in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\Tests\aggregator\Functional\AggregatorTestBase instead. |
abstract class | Drupal\aggregator\Tests | core/ |
Defines a base class for testing the Aggregator module. | |||
AggregatorTestBase | abstract class | Drupal\Tests\aggregator\Functional | core/ |
Defines a base class for testing the Aggregator module. | 15 | |||
AggregatorTestRssController | class | Drupal\aggregator_test\Controller | core/ |
Controller for the aggregator_test module. | ||||
AggregatorTitleFormatter | class | Drupal\aggregator\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'aggregator_title' formatter. | ||||
AggregatorTitleTest | class | Drupal\Tests\aggregator\Kernel | core/ |
Tests the aggregator_title formatter. | ||||
AggregatorUpdateTest | class | Drupal\Tests\aggregator\Functional\Update | core/ |
Tests that node settings are properly updated during database updates. | ||||
AggregatorXSSFormatter | class | Drupal\aggregator\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'aggregator_xss' formatter. | ||||
Ajax | class | Drupal\Core\Render\Element | core/ |
Provides a render element for adding Ajax to a render element. | ||||
AjaxBasePageNegotiator | class | Drupal\Core\Theme | core/ |
Defines a theme negotiator that deals with the active theme on ajax requests. | 1 | 2 | ||
AjaxBasePageNegotiatorTest | class | Drupal\Tests\Core\Theme | core/ |
@coversDefaultClass \Drupal\Core\Theme\AjaxBasePageNegotiator @group Theme | ||||
AjaxBlockTest | class | Drupal\Tests\layout_builder\FunctionalJavascript | core/ |
Ajax blocks tests. | ||||
AjaxCallbacksTest | class | Drupal\FunctionalJavascriptTests\Ajax | core/ |
Tests Ajax callbacks on FAPI elements. | ||||
AjaxCommandsTest | class | Drupal\Tests\Core\Ajax | core/ |
Test coverage for various classes in the \Drupal\Core\Ajax namespace. | ||||
AjaxCssForm | class | Drupal\ckeditor_test\Form | core/ |
A form for testing delivery of CSS to CKEditor via AJAX. | 1 | |||
AjaxCssTest | class | Drupal\Tests\ckeditor\FunctionalJavascript | core/ |
Tests delivery of CSS to CKEditor via AJAX. | ||||
AjaxFileManagedMultipleTest | class | Drupal\Tests\file\FunctionalJavascript | core/ |
Tests ajax upload to managed files. | ||||
AjaxFormBlock | class | Drupal\ajax_forms_test\Plugin\Block | core/ |
Provides an AJAX form block. | ||||
AjaxFormCacheTest | class | Drupal\FunctionalJavascriptTests\Ajax | core/ |
Tests the usage of form caching for AJAX forms. | ||||
AjaxFormHelperTrait | trait | Drupal\Core\Ajax | core/ |
Provides a helper to for submitting an AJAX form. | 5 | |||
AjaxFormImageButtonTest | class | Drupal\FunctionalJavascriptTests\Ajax | core/ |
Tests the Ajax image buttons work with key press events. | ||||
AjaxFormPageCacheTest | class | Drupal\FunctionalJavascriptTests\Ajax | core/ |
Performs tests on AJAX forms in cached pages. | ||||
AjaxFormsTestAjaxElementsForm | class | Drupal\ajax_forms_test\Form | core/ |
Form builder: Builds a form that has each FAPI elements triggering a simple Ajax callback. | 1 | |||
AjaxFormsTestCommandsForm | class | Drupal\ajax_forms_test\Form | core/ |
Form constructor for the Ajax Command display form. | 1 | |||
AjaxFormsTestImageButtonForm | class | Drupal\ajax_forms_test\Form | core/ |
Form builder: Builds a form that has image button with an ajax callback. | 1 | |||
AjaxFormsTestLazyLoadForm | class | Drupal\ajax_forms_test\Form | core/ |
Form builder: Builds a form that triggers a simple AJAX callback. | 1 | |||
AjaxFormsTestSimpleForm | class | Drupal\ajax_forms_test\Form | core/ |
Form builder: Builds a form that triggers a simple AJAX callback. | 1 | |||
AjaxFormsTestValidationForm | class | Drupal\ajax_forms_test\Form | core/ |
Form builder: Builds a form that triggers a simple AJAX callback. | 1 | |||
AjaxHelperTrait | trait | Drupal\Core\Ajax | core/ |
Provides a helper to determine if the current request is via AJAX. | 5 | |||
AjaxInGroupTest | class | Drupal\FunctionalJavascriptTests\Ajax | core/ |
Tests that form elements in groups work correctly with AJAX. | ||||
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 @group Ajax | ||||
AjaxResponse | class | Drupal\Core\Ajax | core/ |
JSON response object for AJAX requests. | 1 | 43 | ||
AjaxResponseAttachmentsProcessor | class | Drupal\Core\Ajax | core/ |
Processes attachments of AJAX responses. | 2 | |||
AjaxResponseSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Response subscriber to handle AJAX responses. | 8 | 2 | ||
AjaxResponseTest | class | Drupal\Tests\Core\Ajax | core/ |
@coversDefaultClass \Drupal\Core\Ajax\AjaxResponse @group Ajax | ||||
AjaxTest | class | Drupal\FunctionalJavascriptTests\Ajax | core/ |
Tests AJAX responses. | ||||
AjaxTestBase | abstract class | Drupal\system\Tests\Ajax | core/ |
Provides a base class for Ajax tests. | ||||
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. | ||||
AjaxTestForm | class | Drupal\ajax_test\Form | core/ |
Dummy form for testing DialogRenderer with _form routes. | 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 | |||
AlertCommand | class | Drupal\Core\Ajax | core/ |
AJAX command for a javascript alert box. | 6 | |||
AliasingResourceTypeRepository | class | Drupal\jsonapi_test_field_aliasing\ResourceType | core/ |
Provides a repository of JSON:API resource types with aliasable field names. | 2 | |||
AliasManager | class | Drupal\path_alias | core/ |
The default alias manager implementation. | 5 | 2 | ||
AliasManager | in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\path_alias\AliasManager instead. |
class | Drupal\Core\Path | core/ |
The default alias manager implementation. | 2 | 5 | 2 |
AliasManagerDecorator | class | Drupal\path_alias_deprecated_test | core/ |
Test alias manager decorator. | 1 | 2 | ||
AliasManagerInterface | interface | Drupal\path_alias | core/ |
Find an alias for a path and vice versa. | 2 | 11 | ||
AliasManagerInterface | in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\path_alias\AliasManagerInterface. |
interface | Drupal\Core\Path | core/ |
Find an alias for a path and vice versa. | 4 | 9 |
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.