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 |
|---|---|---|---|---|---|---|---|---|
| AddBlockForm | class | Drupal\layout_builder\Form | core/ |
Provides a form to add a block. | 1 | |||
| AddComponent | final class | Drupal\layout_builder\Plugin\ConfigAction | core/ |
Adds a component to a layout builder section. | 1 | |||
| AddComponentDeriver | final class | Drupal\layout_builder\Plugin\ConfigAction\Deriver | core/ |
@internal This API is experimental. | 2 | |||
| AddComponentTest | class | Drupal\Tests\layout_builder\Kernel\Plugin\ConfigAction | core/ |
Tests that `addComponentToLayout` config action. | ||||
| AddCssCommand | class | Drupal\Core\Ajax | core/ |
An AJAX command for adding css to the page via ajax. | 3 | |||
| AddedStylesheetsTest | class | Drupal\Tests\ckeditor5\Functional | core/ |
Test the ckeditor5-stylesheets theme config property. | ||||
| AddFeedTest | class | Drupal\Tests\system\Kernel\Common | core/ |
Make sure that attaching feeds works correctly with various constructs. | ||||
| AddFormBase | abstract class | Drupal\media_library\Form | core/ |
Provides a base class for creating media items from within the media library. | 3 | 1 | ||
| AddHandler | class | Drupal\views_ui\Form\Ajax | core/ |
Provides a form for adding an item in the Views UI. | ||||
| AddItemToToolbar | final class | Drupal\ckeditor5\Plugin\ConfigAction | core/ |
Config action plugin to add an item to the toolbar. | 1 | |||
| AddItemToToolbarConfigActionTest | class | Drupal\Tests\ckeditor5\Kernel\ConfigAction | core/ |
Tests add item to toolbar config action. | ||||
| AddJsCommand | class | Drupal\Core\Ajax | core/ |
An AJAX command for adding JS to the page via AJAX. | 1 | |||
| AddListPluginStylesTest | class | Drupal\Tests\ckeditor5\Functional\Update | core/ |
Tests creating base field overrides for the promote field on node types. | ||||
| AddModeration | final class | Drupal\content_moderation\Plugin\ConfigAction | core/ |
@internal This API is experimental. | 1 | |||
| AddModerationConfigActionTest | class | Drupal\Tests\content_moderation\Kernel\ConfigAction | core/ |
Tests Add Moderation Config Action. | ||||
| AddModerationDeriver | final class | Drupal\content_moderation\Plugin\ConfigAction | core/ |
Deriver for moderation config actions plugins. | 1 | |||
| AddNavigationBlock | final class | Drupal\navigation\Plugin\ConfigAction | core/ |
@internal This API is experimental. | 1 | |||
| AddNavigationBlockConfigActionTest | class | Drupal\Tests\navigation\Kernel\ConfigAction | core/ |
Tests Add Navigation Block Config Action. | ||||
| AddRoleUser | class | Drupal\user\Plugin\Action | core/ |
Adds a role to a user. | 1 | |||
| AddRoleUserTest | class | Drupal\Tests\user\Unit\Plugin\Action | core/ |
Tests Drupal\user\Plugin\Action\AddRoleUser. | ||||
| AddSectionController | class | Drupal\layout_builder\Controller | core/ |
Defines a controller to add a new section. | ||||
| AddToAllBundles | final class | Drupal\field\Plugin\ConfigAction | core/ |
Adds a field to all bundles of its target entity type. | 1 | |||
| AddToAllBundlesConfigActionTest | class | Drupal\Tests\field\Kernel | core/ |
Tests Add To All Bundles Config Action. | ||||
| AdminAccountSwitcher | final class | Drupal\Core\DefaultContent | core/ |
@internal This API is experimental. | 1 | |||
| AdminAccountSwitcherTest | class | Drupal\KernelTests\Core\DefaultContent | core/ |
Tests Admin Account Switcher. | ||||
| AdminAjaxTest | class | Drupal\Tests\views_ui\FunctionalJavascript | core/ |
Tests the admin UI AJAX interactions. | ||||
| AdminBlockFilterTest | class | Drupal\FunctionalJavascriptTests\Theme | core/ |
Runs BlockFilterTest in Admin. | ||||
| AdminCompactModeTest | class | Drupal\Tests\system\FunctionalJavascript | core/ |
Tests the JavaScript functionality of the admin compact mode. | ||||
| AdminContext | class | Drupal\Core\Routing | core/ |
Provides a helper class to determine whether the route is an admin one. | 7 | 2 | ||
| AdminController | class | Drupal\system\Controller | core/ |
Controller for admin section. | ||||
| AdminDemoNegotiator | class | Drupal\block\Theme | core/ |
Negotiates the theme for the block admin demo page via the URL. | 2 | |||
| AdminEntityDisplayTest | class | Drupal\FunctionalJavascriptTests\Theme | core/ |
Runs EntityDisplayTest in Admin. | ||||
| AdminHtmlRouteProvider | class | Drupal\Core\Entity\Routing | core/ |
Provides HTML routes for entities with administrative add/edit/delete pages. | 4 | 8 | ||
| AdminLayoutBuilderTest | class | Drupal\FunctionalTests\Theme | core/ |
Tests the layout builder with the Admin theme. | ||||
| AdminMetaTagTest | class | Drupal\Tests\system\Kernel\System | core/ |
Confirm that the fingerprinting meta tag appears as expected. | ||||
| AdminMetaTagTest | class | Drupal\Tests\system\Functional\System | core/ |
Confirm that the fingerprinting meta tag appears as expected. | ||||
| AdminModalDisplayTest | class | Drupal\FunctionalJavascriptTests\Theme | core/ |
Tests that buttons in modals are not in their button pane. | ||||
| AdminNegotiator | class | Drupal\user\Theme | core/ |
Sets the active theme on admin pages. | 1 | 2 | ||
| AdminNegotiatorTest | class | Drupal\Tests\user\Unit\Theme | core/ |
Tests AdminNegotiator class. | ||||
| AdminNodeTest | class | Drupal\Tests\default_admin\Functional | core/ |
Tests Default Admin theme for nodes. | ||||
| AdminPasswordConfirmWidgetTest | class | Drupal\FunctionalJavascriptTests\Theme | core/ |
Tests the password confirm widget with Admin theme. | ||||
| AdminPathConfigEntityConverter | class | Drupal\Core\ParamConverter | core/ |
Makes sure the unmodified ConfigEntity is loaded on admin pages. | 1 | 1 | 2 | |
| AdminPathConfigEntityConverter | class | Drupal\Core\ProxyClass\ParamConverter | core/ |
Provides a proxy class for \Drupal\Core\ParamConverter\AdminPathConfigEntityConverter. | ||||
| AdminPathEntityConverterLanguageTest | class | Drupal\Tests\language\Functional | core/ |
Test administration path based conversion of entities. | 1 | 1 | ||
| AdminRouteSubscriber | class | Drupal\system\EventSubscriber | core/ |
Adds the _admin_route option to each admin HTML route. | 1 | 2 | ||
| AdminRouteSubscriberTest | class | Drupal\Tests\system\Unit\Routing | core/ |
Tests Drupal\system\EventSubscriber\AdminRouteSubscriber. | ||||
| AdminTableDragTest | class | Drupal\FunctionalJavascriptTests\Theme | core/ |
Tests draggable tables with Admin theme. | ||||
| AdminTest | class | Drupal\FunctionalTests\Theme | core/ |
Tests the Admin theme. | ||||
| AdminTest | class | Drupal\Tests\admin\Functional | core/ |
Tests the Admin theme. | ||||
| AdminTest | class | Drupal\Tests\default_admin\Functional | core/ |
Tests the Default Admin theme. |
Pagination
- Previous page
- Page 3
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.