Classes, traits, and interfaces - 9.5.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 1523
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
MenuLinkTest | class | Drupal\Tests\views\Functional\Plugin | core/ |
Tests the menu links created in views. | ||||
MenuLinkTestWithUnsafeTitle | class | Drupal\menu_test\Plugin\Derivative | core/ |
Test derivative with an unsafe string. | 1 | |||
MenuLinkTranslation | class | Drupal\menu_link_content\Plugin\migrate\source\d6 | core/ |
Drupal 6 i18n menu link translations source from database. | ||||
MenuLinkTranslation | class | Drupal\menu_link_content\Plugin\migrate\source\d7 | core/ |
Drupal 7 i18n menu link translations source from database. | ||||
MenuLinkTranslationTest | class | Drupal\Tests\menu_link_content\Kernel\Plugin\migrate\source\d6 | core/ |
Tests menu link translation source plugin. | ||||
MenuLinkTranslationTest | class | Drupal\Tests\menu_link_content\Kernel\Plugin\migrate\source\d7 | core/ |
Tests menu link localized translation source plugin. | ||||
MenuLinkTree | class | Drupal\Core\Menu | core/ |
Implements the loading, transforming and rendering of menu link trees. | 1 | 2 | 2 | |
MenuLinkTreeElement | class | Drupal\Core\Menu | core/ |
Provides a value object to model an element in a menu link tree. | 5 | |||
MenuLinkTreeElementTest | class | Drupal\Tests\Core\Menu | core/ |
Tests the menu link tree element value object. | ||||
MenuLinkTreeInterface | interface | Drupal\Core\Menu | core/ |
Defines an interface for loading, transforming and rendering menu link trees. | 1 | 4 | ||
MenuLinkTreeTest | class | Drupal\Tests\system\Unit\Menu | core/ |
@coversDefaultClass \Drupal\Core\Menu\MenuLinkTree[[api-linebreak]] @group Menu | ||||
MenuLinkTreeTest | class | Drupal\KernelTests\Core\Menu | core/ |
Tests the menu link tree. | ||||
MenuListBuilder | class | Drupal\menu_ui | core/ |
Defines a class to build a listing of menu entities. | ||||
MenuParentFormSelector | class | Drupal\Core\Menu | core/ |
Default implementation of the menu parent form selector service. | 1 | 2 | ||
MenuParentFormSelectorInterface | interface | Drupal\Core\Menu | core/ |
Defines an interface for menu selector form elements and menu link options. | 1 | 7 | ||
MenuResourceTestBase | abstract class | Drupal\Tests\system\Functional\Rest | core/ |
9 | 3 | |||
MenuRouterRebuildSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Rebuilds the default menu links and runs menu-specific code if necessary. | 2 | |||
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. | ||||
MenuTestController | class | Drupal\menu_test\Controller | core/ |
Controller routines for menu_test routes. | ||||
MenuTranslation | class | Drupal\system\Plugin\migrate\source\d7 | core/ |
Drupal 7 i18n menu translation source from database. | ||||
MenuTranslationTest | class | Drupal\Tests\system\Kernel\Plugin\migrate\source\d7 | core/ |
Tests the menu translation source plugin. | ||||
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. | ||||
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. | ||||
MenuUiNodeTypeTest | class | Drupal\Tests\menu_ui\Kernel | core/ |
Tests menu settings when creating and editing content types. | ||||
MenuUiTest | class | Drupal\Tests\menu_ui\Functional | core/ |
Tests the menu 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. | ||||
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\pgsql\Driver\Database\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Merge. | ||||
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\DrivertestMysqlDeprecatedVersion | core/ |
MySQL test implementation of \Drupal\Core\Database\Query\Merge. | ||||
Merge | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Query\Merge. |
Pagination
- Previous page
- Page 100
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.