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 |
---|---|---|---|---|---|---|---|---|
MenuRouterTest | class | Drupal\Tests\system\Functional\Menu | core/ |
Tests menu router and default menu link functionality. | ||||
MenuSettingsConstraint | class | Drupal\menu_ui\Plugin\Validation\Constraint | core/ |
Validation constraint for changing the menu settings in pending revisions. | ||||
MenuSettingsConstraintValidator | class | Drupal\menu_ui\Plugin\Validation\Constraint | core/ |
Constraint validator for changing the menu settings in pending revisions. | ||||
MenuStorage | class | Drupal\system | core/ |
Defines the storage class for menu configuration entities. | 4 | |||
MenuStorageTest | class | Drupal\Tests\system\Kernel\Menu | core/ |
Tests MenuStorage. | ||||
MenuTest | class | Drupal\Tests\system\Kernel\Plugin\migrate\source | core/ |
Tests menu source plugin. | ||||
MenuTest | class | Drupal\Tests\views\Functional\Wizard | core/ |
Tests the ability of the views wizard to put views in a menu. | ||||
MenuTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "Menu" config entity type. | ||||
MenuTestBase | in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\Tests\BrowserTestBase instead. |
abstract class | Drupal\system\Tests\Menu | core/ |
Base class for Menu tests. | |||
MenuTestController | class | Drupal\menu_test\Controller | core/ |
Controller routines for menu_test routes. | ||||
MenuTreeHierarchyConstraint | class | Drupal\menu_link_content\Plugin\Validation\Constraint | core/ |
Validation constraint for changing the menu hierarchy in pending revisions. | ||||
MenuTreeHierarchyConstraintValidator | class | Drupal\menu_link_content\Plugin\Validation\Constraint | core/ |
Constraint validator for changing menu link parents in pending revisions. | ||||
MenuTreeParameters | class | Drupal\Core\Menu | core/ |
Provides a value object to model menu tree parameters. | 18 | |||
MenuTreeParametersTest | class | Drupal\Tests\Core\Menu | core/ |
Tests the menu link tree parameters value object. | ||||
MenuTreeSerializationTitleFilledTest | class | Drupal\Tests\system\Functional\Update | core/ |
Runs MenuTreeSerializationTitleTest with a dump filled with content. | ||||
MenuTreeSerializationTitleTest | class | Drupal\Tests\system\Functional\Update | core/ |
Tests system_update_8001(). | 1 | |||
MenuTreeStorage | class | Drupal\Core\Menu | core/ |
Provides a menu tree storage using the database. | 1 | 2 | ||
MenuTreeStorageInterface | interface | Drupal\Core\Menu | core/ |
Defines an interface for storing a menu tree containing menu link IDs. | 1 | |||
MenuTreeStorageTest | class | Drupal\KernelTests\Core\Menu | core/ |
Tests the menu tree storage. | ||||
MenuUiContentModerationTest | class | Drupal\Tests\menu_ui\Functional | core/ |
Tests Menu UI and Content Moderation integration. | ||||
MenuUiJavascriptTest | class | Drupal\Tests\menu_ui\FunctionalJavascript | core/ |
Tests custom menu and menu links operations using the UI. | 1 | 1 | ||
MenuUiLanguageTest | class | Drupal\Tests\menu_ui\Functional | core/ |
Tests for menu_ui language settings. | ||||
MenuUiNodeTest | class | Drupal\Tests\menu_ui\Functional | core/ |
Add, edit, and delete a node with menu link. | ||||
MenuUiTest | class | Drupal\Tests\menu_ui\Functional | core/ |
Add a custom menu, add menu links to the custom menu and Tools menu, check their data, and delete them using the UI. | ||||
MenuUiTrait | trait | Drupal\Tests\menu_ui\Traits | core/ |
Provides common methods for Menu UI module tests. | 3 | |||
MenuUninstallTest | class | Drupal\Tests\menu_ui\Functional | core/ |
Tests that uninstalling menu does not remove custom menus. | ||||
MenuWebTestBase | in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\menu_ui\Traits\MenuUiTrait methods, instead. |
abstract class | Drupal\menu_ui\Tests | core/ |
Base class for menu web tests. | |||
MenuXmlAnonTest | class | Drupal\Tests\system\Functional\Rest | core/ |
@group rest | ||||
MenuXmlBasicAuthTest | class | Drupal\Tests\system\Functional\Rest | core/ |
@group rest | ||||
MenuXmlCookieTest | class | Drupal\Tests\system\Functional\Rest | core/ |
@group rest | ||||
Merge | class | Drupal\driver_test\Driver\Database\DrivertestMysql | core/ |
MySQL test implementation of \Drupal\Core\Database\Query\Merge. | ||||
Merge | class | Drupal\driver_test\Driver\Database\DrivertestPgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Merge. | ||||
Merge | class | Drupal\Core\Database\Driver\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Query\Merge. | ||||
Merge | class | Drupal\Core\Database\Driver\mysql | core/ |
MySQL implementation of \Drupal\Core\Database\Query\Merge. | 1 | 1 | ||
Merge | class | Drupal\Core\Database\Driver\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Merge. | 1 | 1 | ||
Merge | class | Drupal\Core\Database\Query | core/ |
General class for an abstracted MERGE query operation. | 3 | 6 | ||
MergeTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the MERGE query builder. | ||||
Message | class | Drupal\contact\Entity | core/ |
Defines the contact message entity. | 3 | |||
Message | class | Drupal\Composer\Plugin\ProjectMessage | composer/ |
Determine configuration. | 1 | |||
MessageAction | class | Drupal\Core\Action\Plugin\Action | core/ |
Sends a message to the current user's screen. | ||||
MessageCommand | class | Drupal\Core\Ajax | core/ |
AJAX command for a JavaScript Drupal.message() call. | 1 | |||
MessageCommandTest | class | Drupal\FunctionalJavascriptTests\Ajax | core/ |
Tests adding messages via AJAX command. | ||||
MessageEntityTest | class | Drupal\Tests\contact\Kernel | core/ |
Tests the message entity class. | ||||
MessageForm | class | Drupal\contact | core/ |
Form controller for contact message forms. | ||||
MessageHalJsonAnonTest | class | Drupal\Tests\contact\Functional\Hal | core/ |
@group hal | 2 | |||
MessageHalJsonBasicAuthTest | class | Drupal\Tests\contact\Functional\Hal | core/ |
@group hal | ||||
MessageHalJsonCookieTest | class | Drupal\Tests\contact\Functional\Hal | core/ |
@group hal | ||||
MessageInterface | interface | Drupal\contact | core/ |
Provides an interface defining a contact message entity. | 1 | 2 | ||
MessageJsonAnonTest | class | Drupal\Tests\contact\Functional\Rest | core/ |
@group rest | ||||
MessageJsonBasicAuthTest | class | Drupal\Tests\contact\Functional\Rest | core/ |
@group rest |
Pagination
- Previous page
- Page 106
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.