Primary tabs
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
Name | Type | Namespace | Location | Description | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|
AccountProxyTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Core\Session\AccountProxy @group Session | |||
AccountSetEvent | final class |
Drupal\ |
core/ |
Event fired when an account is set for the current session. | |||
AccountSettingsForm | class |
Drupal\ |
core/ |
Configure user settings for this site. | 3 | 1 | |
AccountSwitcher | class |
Drupal\ |
core/ |
An implementation of AccountSwitcherInterface. | 2 | ||
AccountSwitcherInterface | interface |
Drupal\ |
core/ |
Defines an interface for a service for safe account switching. | 1 | 8 | |
AccountSwitcherTest | class |
Drupal\ |
core/ |
Test case for account switching. | |||
Action | class |
Drupal\ |
core/ |
Defines an Action annotation object. | |||
Action | class |
Drupal\ |
core/ |
Drupal action source from database. | 1 | ||
ActionAddForm | class |
Drupal\ |
core/ |
Provides a form for action add forms. | 1 | ||
ActionAdminManageForm | class |
Drupal\ |
core/ |
Provides a configuration form for configurable actions. | |||
ActionBase | abstract class |
Drupal\ |
core/ |
Provides a base implementation for an Action plugin. | 3 | 2 | |
ActionConfigEntityInterface | interface |
Drupal\ |
core/ |
Provides an interface defining an action entity. | 1 | ||
ActionDeleteForm | class |
Drupal\ |
core/ |
Builds a form to delete an action. | |||
ActionEditForm | class |
Drupal\ |
core/ |
Provides a form for action edit forms. | 1 | ||
ActionFormAjaxTest | class |
Drupal\ |
core/ |
Tests action plugins using JavaScript. | |||
ActionFormBase | abstract class |
Drupal\ |
core/ |
Provides a base form for action forms. | 2 | ||
ActionInterface | interface |
Drupal\ |
core/ |
Provides an interface for an Action plugin. | 1 | 2 | 1 |
ActionJsonAnonTest | class |
Drupal\ |
core/ |
@group action @group legacy | |||
ActionJsonBasicAuthTest | class |
Drupal\ |
core/ |
@group action @group legacy | |||
ActionJsonCookieTest | class |
Drupal\ |
core/ |
@group action @group legacy | |||
ActionListTest | class |
Drupal\ |
core/ |
Test behaviors when visiting the action listing page. | |||
ActionLocalTasksTest | class |
Drupal\ |
core/ |
Tests action local tasks. | |||
ActionManager | class |
Drupal\ |
core/ |
Provides an Action plugin manager. | 1 | 2 | |
ActionPluginCollection | class |
Drupal\ |
core/ |
Provides a container for lazily loading Action plugins. | |||
ActionResourceTestBase | abstract class |
Drupal\ |
core/ |
6 | |||
Actions | class |
Drupal\ |
core/ |
||||
ActionsTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Core\Render\Element\Actions @group Render | |||
ActionTest | class |
Drupal\ |
core/ |
Tests action plugins. | |||
ActionTest | class |
Drupal\ |
core/ |
Tests actions source plugin. | |||
ActionTest | class |
Drupal\ |
core/ |
JSON:API integration test for the "Action" config entity type. | |||
ActionUninstallTest | class |
Drupal\ |
core/ |
Tests that uninstalling Actions UI does not remove other modules' actions. | |||
ActionValidationTest | class |
Drupal\ |
core/ |
Tests validation of action entities. | |||
ActionXmlAnonTest | class |
Drupal\ |
core/ |
@group action @group legacy | |||
ActionXmlBasicAuthTest | class |
Drupal\ |
core/ |
@group action @group legacy | |||
ActionXmlCookieTest | class |
Drupal\ |
core/ |
@group action @group legacy | |||
ActiveLinkResponseFilter | class |
Drupal\ |
core/ |
Subscribes to filter HTML responses, to set attributes on active links. | 1 | 2 | |
ActiveLinkResponseFilterTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Core\EventSubscriber\ActiveLinkResponseFilter @group EventSubscriber | |||
ActiveTheme | class |
Drupal\ |
core/ |
Defines a theme and its information needed at runtime. | 4 | ||
ActiveWorkspaceCheck | class |
Drupal\ |
core/ |
Determines access to routes based on the presence of an active workspace. | 1 | 2 | |
ActiveWorkspaceCheckTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\workspaces\Access\ActiveWorkspaceCheck | |||
ActiveWorkspaceUpdateTest | class |
Drupal\ |
core/ |
Tests that there is no active workspace during database updates. | |||
AddBlockForm | class |
Drupal\ |
core/ |
Provides a form to add a block. | 1 | ||
AddCssCommand | class |
Drupal\ |
core/ |
An AJAX command for adding css to the page via ajax. | 3 | ||
AddFeedTest | class |
Drupal\ |
core/ |
Make sure that attaching feeds works correctly with various constructs. | |||
AddFormBase | abstract class |
Drupal\ |
core/ |
Provides a base class for creating media items from within the media library. | 3 | 1 | |
AddHandler | class |
Drupal\ |
core/ |
Provides a form for adding an item in the Views UI. | |||
AddJsCommand | class |
Drupal\ |
core/ |
An AJAX command for adding JS to the page via AJAX. | 1 | ||
AddPermissionsUpdateTest | class |
Drupal\ |
core/ |
Tests help_post_update_add_permissions_to_roles(). | |||
AddRoleUserTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\user\Plugin\Action\AddRoleUser @group user | |||
AddSectionController | class |
Drupal\ |
core/ |
Defines a controller to add a new section. |