Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core

Primary tabs

  • Drupal 11.1.x

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 1518

Name Deprecated Object type Namespace File name Summary Direct uses Use statements Strings
MemoryUsage final class PHPUnit\Event\Telemetry vendor/phpunit/phpunit/src/Event/Value/Telemetry/MemoryUsage.php @psalm-immutable
Menu class Drupal\system\Entity core/modules/system/src/Entity/Menu.php Defines the Menu configuration entity class. 2
Menu class Drupal\system\Plugin\migrate\source core/modules/system/src/Plugin/migrate/source/Menu.php Drupal 6/7 menu source from database. 1 1
MenuAccessControlHandler class Drupal\system core/modules/system/src/MenuAccessControlHandler.php Defines the access control handler for the menu entity type. 1
MenuActiveTrail class Drupal\Core\Menu core/lib/Drupal/Core/Menu/MenuActiveTrail.php Provides the default implementation of the active menu trail service.
MenuActiveTrail class Drupal\Core\ProxyClass\Menu core/lib/Drupal/Core/ProxyClass/Menu/MenuActiveTrail.php Provides a proxy class for \Drupal\Core\Menu\MenuActiveTrail.
MenuActiveTrailInterface interface Drupal\Core\Menu core/lib/Drupal/Core/Menu/MenuActiveTrailInterface.php Defines an interface for the active menu trail service. 2 3
MenuActiveTrailsCacheContext class Drupal\Core\Cache\Context core/lib/Drupal/Core/Cache/Context/MenuActiveTrailsCacheContext.php Defines the MenuActiveTrailsCacheContext service.
MenuController class Drupal\menu_ui\Controller core/modules/menu_ui/src/Controller/MenuController.php Returns responses for Menu routes.
MenuController class Drupal\menu_link_content\Controller core/modules/menu_link_content/src/Controller/MenuController.php Defines a route controller for a form for menu link content entity creation.
MenuDeleteForm class Drupal\menu_ui\Form core/modules/menu_ui/src/Form/MenuDeleteForm.php Defines a confirmation form for deletion of a custom menu.
MenuForm class Drupal\menu_ui core/modules/menu_ui/src/MenuForm.php Base form for menu edit forms.
MenuInterface interface Drupal\system core/modules/system/src/MenuInterface.php Provides an interface defining a menu entity. 1 8
MenuLink class Drupal\menu_link_content\Plugin\migrate\source core/modules/menu_link_content/src/Plugin/migrate/source/MenuLink.php Drupal 6/7 menu link source from database. 3 3
MenuLinkAdd class Drupal\menu_ui\Plugin\Menu\LocalAction core/modules/menu_ui/src/Plugin/Menu/LocalAction/MenuLinkAdd.php Modifies the 'Add link' local action to add a destination. 1
MenuLinkBase abstract class Drupal\Core\Menu core/lib/Drupal/Core/Menu/MenuLinkBase.php Defines a base menu link class. 4 2
MenuLinkContent class Drupal\menu_link_content\Plugin\Menu core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php Provides the menu link plugin for content menu links. 1 1
MenuLinkContent class Drupal\menu_link_content\Entity core/modules/menu_link_content/src/Entity/MenuLinkContent.php Defines the menu link content entity class. 1
MenuLinkContentAccessControlHandler class Drupal\menu_link_content core/modules/menu_link_content/src/MenuLinkContentAccessControlHandler.php Defines the access control handler for the menu link content entity type. 1
MenuLinkContentDeleteForm class Drupal\menu_link_content\Form core/modules/menu_link_content/src/Form/MenuLinkContentDeleteForm.php Provides a delete form for content menu links. 1
MenuLinkContentDeriver class Drupal\menu_link_content\Plugin\Deriver core/modules/menu_link_content/src/Plugin/Deriver/MenuLinkContentDeriver.php Provides a deriver for user entered paths of menu links. 1
MenuLinkContentForm class Drupal\menu_link_content\Form core/modules/menu_link_content/src/Form/MenuLinkContentForm.php Provides a form to add/update content menu links. 1 1
MenuLinkContentHooks class Drupal\menu_link_content\Hook core/modules/menu_link_content/src/Hook/MenuLinkContentHooks.php Hook implementations for menu_link_content.
MenuLinkContentInterface interface Drupal\menu_link_content core/modules/menu_link_content/src/MenuLinkContentInterface.php Defines an interface for custom menu links. 1 2
MenuLinkContentStorage class Drupal\menu_link_content core/modules/menu_link_content/src/MenuLinkContentStorage.php Storage handler for menu_link_content entities. 1
MenuLinkContentStorageInterface interface Drupal\menu_link_content core/modules/menu_link_content/src/MenuLinkContentStorageInterface.php Defines an interface for menu_link_content entity storage classes. 1 1
MenuLinkContentStorageSchema class Drupal\menu_link_content core/modules/menu_link_content/src/MenuLinkContentStorageSchema.php Defines the menu_link_content schema handler. 1
MenuLinkDefault class Drupal\Core\Menu core/lib/Drupal/Core/Menu/MenuLinkDefault.php Provides a default implementation for menu link plugins. 1 1
MenuLinkDefaultForm class Drupal\Core\Menu\Form core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php Provides an edit form for static menu links. 1 1
MenuLinkEditForm class Drupal\menu_ui\Form core/modules/menu_ui/src/Form/MenuLinkEditForm.php Defines a generic edit form for all menu link plugin types. 1
MenuLinkFieldDefinitions trait Drupal\Core\Menu core/lib/Drupal/Core/Menu/MenuLinkFieldDefinitions.php Provides default values for menu link plugin definitions.
MenuLinkFormInterface interface Drupal\Core\Menu\Form core/lib/Drupal/Core/Menu/Form/MenuLinkFormInterface.php Defines an interface for edit forms of menu links. 1
MenuLinkInterface interface Drupal\Core\Menu core/lib/Drupal/Core/Menu/MenuLinkInterface.php Defines an interface for classes providing a type of menu link. 1 7
MenuLinkListBuilder class Drupal\menu_link_content core/modules/menu_link_content/src/MenuLinkListBuilder.php Provides a menu link list builder. 1
MenuLinkLocalized class Drupal\menu_link_content\Plugin\migrate\source\d7 core/modules/menu_link_content/src/Plugin/migrate/source/d7/MenuLinkLocalized.php Drupal 7 localized menu link translations source from database.
MenuLinkManager class Drupal\Core\Menu core/lib/Drupal/Core/Menu/MenuLinkManager.php Manages discovery, instantiation, and tree building of menu link plugins.
MenuLinkManagerInterface interface Drupal\Core\Menu core/lib/Drupal/Core/Menu/MenuLinkManagerInterface.php Defines an interface for managing menu links and storing their definitions. 1 9
MenuLinkParent class Drupal\migrate\Plugin\migrate\process core/modules/migrate/src/Plugin/migrate/process/MenuLinkParent.php Determines the parent of a menu link.
MenuLinkPluginConverter class Drupal\Core\ParamConverter core/lib/Drupal/Core/ParamConverter/MenuLinkPluginConverter.php Parameter converter for upcasting entity ids to full objects.
MenuLinkPluginConverter class Drupal\Core\ProxyClass\ParamConverter core/lib/Drupal/Core/ProxyClass/ParamConverter/MenuLinkPluginConverter.php Provides a proxy class for \Drupal\Core\ParamConverter\MenuLinkPluginConverter.
MenuLinkResetForm class Drupal\menu_ui\Form core/modules/menu_ui/src/Form/MenuLinkResetForm.php Defines a confirmation form for resetting a single modified menu link. 1
MenuLinksetRoutes class Drupal\system\Routing core/modules/system/src/Routing/MenuLinksetRoutes.php Dynamically defines routes for menu linkset endpoints. 2
MenuLinksetSettingsForm class Drupal\system\Form core/modules/system/src/Form/MenuLinksetSettingsForm.php Configure System settings for this site. 1
MenuLinkTranslation class Drupal\menu_link_content\Plugin\migrate\source\d6 core/modules/menu_link_content/src/Plugin/migrate/source/d6/MenuLinkTranslation.php Drupal 6 i18n menu link translations source from database.
MenuLinkTranslation class Drupal\menu_link_content\Plugin\migrate\source\d7 core/modules/menu_link_content/src/Plugin/migrate/source/d7/MenuLinkTranslation.php Drupal 7 i18n menu link translations source from database.
MenuLinkTree class Drupal\Core\Menu core/lib/Drupal/Core/Menu/MenuLinkTree.php Implements the loading, transforming and rendering of menu link trees. 2 2
MenuLinkTreeElement class Drupal\Core\Menu core/lib/Drupal/Core/Menu/MenuLinkTreeElement.php Provides a value object to model an element in a menu link tree. 1
MenuLinkTreeInterface interface Drupal\Core\Menu core/lib/Drupal/Core/Menu/MenuLinkTreeInterface.php Defines an interface for loading, transforming and rendering menu link trees. 1 7
MenuListBuilder class Drupal\menu_ui core/modules/menu_ui/src/MenuListBuilder.php Defines a class to build a listing of menu entities.
MenuParentFormSelector class Drupal\Core\Menu core/lib/Drupal/Core/Menu/MenuParentFormSelector.php Default implementation of the menu parent form selector service.

Pagination

  • First page
  • Previous page
  • …
  • Page 114
  • Page 115
  • Page 116
  • Page 117
  • Page 118
  • Page 119
  • Page 120
  • Page 121
  • Page 122
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal