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 |
---|---|---|---|---|---|---|---|---|
MenuLinkContentJsonBasicAuthTest | class | Drupal\Tests\menu_link_content\Functional\Rest | core/ |
@group rest | ||||
MenuLinkContentJsonCookieTest | class | Drupal\Tests\menu_link_content\Functional\Rest | core/ |
@group rest | ||||
MenuLinkContentResourceTestBase | abstract class | Drupal\Tests\menu_link_content\Functional\Rest | core/ |
ResourceTestBase for MenuLinkContent entity. | 8 | 2 | ||
MenuLinkContentResourceTestBase | in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\menu_link_content\Functional\Rest\MenuLinkContentResourceTestBase instead. |
abstract class | Drupal\Tests\rest\Functional\EntityResource\MenuLinkContent | core/ |
||||
MenuLinkContentStorage | class | Drupal\menu_link_content | core/ |
Storage handler for menu_link_content entities. | 1 | |||
MenuLinkContentStorageInterface | interface | Drupal\menu_link_content | core/ |
Defines an interface for menu_link_content entity storage classes. | 1 | 1 | ||
MenuLinkContentStorageSchema | class | Drupal\menu_link_content | core/ |
Defines the menu_link_content schema handler. | ||||
MenuLinkContentTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "MenuLinkContent" content entity type. | ||||
MenuLinkContentTranslationUITest | class | Drupal\Tests\menu_link_content\Functional | core/ |
Tests the menu link content translation UI. | ||||
MenuLinkContentUpdateTest | class | Drupal\Tests\menu_link_content\Functional\Update | core/ |
Tests the upgrade path for custom menu links. | ||||
MenuLinkContentXmlAnonTest | class | Drupal\Tests\menu_link_content\Functional\Rest | core/ |
@group rest | ||||
MenuLinkContentXmlBasicAuthTest | class | Drupal\Tests\menu_link_content\Functional\Rest | core/ |
@group rest | ||||
MenuLinkContentXmlCookieTest | class | Drupal\Tests\menu_link_content\Functional\Rest | core/ |
@group rest | ||||
MenuLinkDefault | class | Drupal\Core\Menu | core/ |
Provides a default implementation for menu link plugins. | 1 | 3 | ||
MenuLinkDefaultForm | class | Drupal\Core\Menu\Form | core/ |
Provides an edit form for static menu links. | 1 | 2 | ||
MenuLinkDefaultFormTest | class | Drupal\Tests\Core\Menu | core/ |
@coversDefaultClass \Drupal\Core\Menu\Form\MenuLinkDefaultForm @group Menu | ||||
MenuLinkDefaultIntegrationTest | class | Drupal\KernelTests\Core\Menu | core/ |
Tests integration of static menu links. | ||||
MenuLinkDefaultTest | class | Drupal\Tests\Core\Menu | core/ |
@coversDefaultClass \Drupal\Core\Menu\MenuLinkDefault @group Menu | ||||
MenuLinkEditForm | class | Drupal\menu_ui\Form | core/ |
Defines a generic edit form for all menu link plugin types. | 1 | |||
MenuLinkFormInterface | interface | Drupal\Core\Menu\Form | core/ |
Defines an interface for edit forms of menu links. | 1 | |||
MenuLinkInterface | interface | Drupal\Core\Menu | core/ |
Defines an interface for classes providing a type of menu link. | 1 | 7 | ||
MenuLinkManager | class | Drupal\Core\Menu | core/ |
Manages discovery, instantiation, and tree building of menu link plugins. | 2 | |||
MenuLinkManagerInterface | interface | Drupal\Core\Menu | core/ |
Defines an interface for managing menu links and storing their definitions. | 1 | 10 | ||
MenuLinkMock | class | Drupal\Tests\Core\Menu | core/ |
Defines a mock implementation of a menu link used in tests only. | 1 | 3 | ||
MenuLinkParent | class | Drupal\migrate\Plugin\migrate\process | core/ |
This plugin figures out menu link parent plugin IDs. | 1 | |||
MenuLinkParentTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests the menu link parent process plugin. | ||||
MenuLinkPluginConverter | class | Drupal\Core\ProxyClass\ParamConverter | core/ |
Provides a proxy class for \Drupal\Core\ParamConverter\MenuLinkPluginConverter. | ||||
MenuLinkPluginConverter | class | Drupal\Core\ParamConverter | core/ |
Parameter converter for upcasting entity ids to full objects. | 2 | |||
MenuLinkPluginTest | class | Drupal\Tests\menu_link_content\Unit | core/ |
@coversDefaultClass \Drupal\menu_link_content\Plugin\Menu\MenuLinkContent | ||||
MenuLinkReorderTest | class | Drupal\Tests\menu_ui\Functional | core/ |
Reorder menu items. | ||||
MenuLinkResetForm | class | Drupal\menu_ui\Form | core/ |
Defines a confirmation form for resetting a single modified menu link. | 1 | |||
MenuLinkSecurityTest | class | Drupal\Tests\system\Functional\Menu | core/ |
Ensures that menu links don't cause XSS issues. | ||||
MenuLinksTest | class | Drupal\Tests\menu_link_content\Kernel | core/ |
Tests handling of menu links hierarchies. | ||||
MenuLinkTest | class | Drupal\Tests\menu_link_content\Kernel\Plugin\migrate\source | core/ |
Tests the menu link source plugin. | ||||
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/ |
Gets Menu link translations from source database. | ||||
MenuLinkTranslationTest | class | Drupal\Tests\menu_link_content\Kernel\Plugin\migrate\source\d6 | core/ |
Tests menu link 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\KernelTests\Core\Menu | core/ |
Tests the menu link tree. | ||||
MenuLinkTreeTest | class | Drupal\Tests\system\Unit\Menu | core/ |
@coversDefaultClass \Drupal\Core\Menu\MenuLinkTree @group Menu | ||||
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. | 2 | |||
MenuParentFormSelectorInterface | interface | Drupal\Core\Menu | core/ |
Defines an interface for menu selector form elements and menu link options. | 1 | 4 | ||
MenuResourceTestBase | abstract class | Drupal\Tests\system\Functional\Rest | core/ |
10 | 4 | |||
MenuResourceTestBase | in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\system\Functional\Rest\MenuResourceTestBase instead. |
abstract class | Drupal\Tests\rest\Functional\EntityResource\Menu | core/ |
||||
MenuRouterRebuildSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Rebuilds the default menu links and runs menu-specific code if necessary. | 2 |
Pagination
- Previous page
- Page 105
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.