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 |
---|---|---|---|---|---|---|---|---|
MemoryBackendTest | class | Drupal\KernelTests\Core\Cache | core/ |
Unit test of the memory cache backend using the generic cache unit test base. | ||||
MemoryCache | class | Drupal\Core\Cache\MemoryCache | core/ |
Defines a memory cache implementation. | 4 | 4 | ||
MemoryCacheInterface | interface | Drupal\Core\Cache\MemoryCache | core/ |
Defines an interface for memory cache implementations. | 1 | 11 | ||
MemoryCounterBackend | class | Drupal\Core\Cache | core/ |
Defines a memory cache implementation that counts set and get calls. | 1 | |||
MemoryStorage | class | Drupal\Core\Config | core/ |
Provides an in memory configuration storage. | 1 | 5 | ||
MemoryStorage | class | Drupal\Core\KeyValueStore | core/ |
Defines a default key/value store implementation. | ||||
MemoryStorageTest | class | Drupal\KernelTests\Core\KeyValueStore | core/ |
Tests the key-value memory storage. | ||||
MemoryStorageTest | class | Drupal\KernelTests\Core\Config\Storage | core/ |
Tests MemoryStorage operations. | ||||
Menu | class | Drupal\system\Entity | core/ |
Defines the Menu configuration entity class. | 16 | |||
Menu | class | Drupal\system\Plugin\migrate\source | core/ |
Menu source from database. | ||||
MenuAccessControlHandler | class | Drupal\system | core/ |
Defines the access control handler for the menu entity type. | ||||
MenuAccessControlHandlerTest | class | Drupal\Tests\system\Kernel | core/ |
@coversDefaultClass \Drupal\system\MenuAccessControlHandler @group system | ||||
MenuAccessTest | class | Drupal\Tests\system\Functional\Menu | core/ |
Tests the route access checks on menu links. | ||||
MenuActiveTrail | class | Drupal\Core\Menu | core/ |
Provides the default implementation of the active menu trail service. | 1 | 2 | ||
MenuActiveTrailInterface | interface | Drupal\Core\Menu | core/ |
Defines an interface for the active menu trail service. | 1 | 2 | ||
MenuActiveTrailsCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the MenuActiveTrailsCacheContext service. | 2 | |||
MenuActiveTrailTest | class | Drupal\Tests\Core\Menu | core/ |
Tests the active menu trail service. | ||||
MenuBlockPostUpdateTest | class | Drupal\Tests\system\Functional\Update | core/ |
Tests updating menu blocks configuration. | ||||
MenuCacheTagsTest | class | Drupal\Tests\menu_ui\Functional | core/ |
Tests the Menu and Menu Link entities' cache tags. | ||||
MenuController | class | Drupal\menu_ui\Controller | core/ |
Returns responses for Menu routes. | ||||
MenuController | class | Drupal\menu_link_content\Controller | core/ |
Defines a route controller for a form for menu link content entity creation. | ||||
MenuDeleteForm | class | Drupal\menu_ui\Form | core/ |
Defines a confirmation form for deletion of a custom menu. | ||||
MenuForm | class | Drupal\menu_ui | core/ |
Base form for menu edit forms. | ||||
MenuHalJsonAnonTest | class | Drupal\Tests\system\Functional\Hal | core/ |
@group hal | ||||
MenuHalJsonBasicAuthTest | class | Drupal\Tests\system\Functional\Hal | core/ |
@group hal | ||||
MenuHalJsonCookieTest | class | Drupal\Tests\system\Functional\Hal | core/ |
@group hal | ||||
MenuInterface | interface | Drupal\system | core/ |
Provides an interface defining a menu entity. | 1 | 5 | ||
MenuJsonAnonTest | class | Drupal\Tests\system\Functional\Rest | core/ |
@group rest | ||||
MenuJsonBasicAuthTest | class | Drupal\Tests\system\Functional\Rest | core/ |
@group rest | ||||
MenuJsonCookieTest | class | Drupal\Tests\system\Functional\Rest | core/ |
@group rest | ||||
MenuLegacyTest | class | Drupal\KernelTests\Core\Menu | core/ |
Deprecation tests cases for the menu layer. | ||||
MenuLink | class | Drupal\menu_link_content\Plugin\migrate\source | core/ |
Drupal menu link source from database. | 1 | 1 | ||
MenuLinkAdd | class | Drupal\menu_ui\Plugin\Menu\LocalAction | core/ |
Modifies the 'Add link' local action to add a destination. | 1 | |||
MenuLinkBase | abstract class | Drupal\Core\Menu | core/ |
Defines a base menu link class. | 5 | 3 | ||
MenuLinkContent | class | Drupal\menu_link_content\Entity | core/ |
Defines the menu link content entity class. | 23 | |||
MenuLinkContent | class | Drupal\menu_link_content\Plugin\Menu | core/ |
Provides the menu link plugin for content menu links. | 2 | 1 | ||
MenuLinkContentAccessControlHandler | class | Drupal\menu_link_content | core/ |
Defines the access control handler for the user entity type. | 1 | |||
MenuLinkContentCacheabilityBubblingTest | class | Drupal\Tests\menu_link_content\Kernel | core/ |
Ensures that rendered menu links bubble the necessary bubbleable metadata for outbound path/route processing. | ||||
MenuLinkContentDeleteForm | class | Drupal\menu_link_content\Form | core/ |
Provides a delete form for content menu links. | ||||
MenuLinkContentDeleteFormTest | class | Drupal\Tests\menu_link_content\Functional | core/ |
Tests the menu link content delete UI. | ||||
MenuLinkContentDeriver | class | Drupal\menu_link_content\Plugin\Deriver | core/ |
Provides a deriver for user entered paths of menu links. | 1 | |||
MenuLinkContentDeriverTest | class | Drupal\Tests\menu_link_content\Kernel | core/ |
Tests the menu link content deriver. | ||||
MenuLinkContentEntityAccessTest | class | Drupal\Tests\menu_link_content\Unit | core/ |
Tests menu link content entity access. | ||||
MenuLinkContentForm | class | Drupal\menu_link_content\Form | core/ |
Provides a form to add/update content menu links. | 1 | |||
MenuLinkContentFormTest | class | Drupal\Tests\menu_link_content\Functional | core/ |
Tests the menu link content UI. | ||||
MenuLinkContentHalJsonAnonTest | class | Drupal\Tests\menu_link_content\Functional\Hal | core/ |
@group hal | 2 | |||
MenuLinkContentHalJsonBasicAuthTest | class | Drupal\Tests\menu_link_content\Functional\Hal | core/ |
@group hal | ||||
MenuLinkContentHalJsonCookieTest | class | Drupal\Tests\menu_link_content\Functional\Hal | core/ |
@group hal | ||||
MenuLinkContentInterface | interface | Drupal\menu_link_content | core/ |
Defines an interface for custom menu links. | 1 | 4 | ||
MenuLinkContentJsonAnonTest | class | Drupal\Tests\menu_link_content\Functional\Rest | core/ |
@group rest |
Pagination
- Previous page
- Page 104
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.