Classes, traits, and interfaces - 10.3.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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
DefaultSingleLazyPluginCollection | class | Drupal\Core\Plugin | core/ |
Provides a default plugin collection for a plugin type. | 3 | 7 | ||
DefaultSingleLazyPluginCollectionTest | class | Drupal\Tests\Core\Plugin | core/ |
@coversDefaultClass \Drupal\Core\Plugin\DefaultSingleLazyPluginCollection[[api-linebreak]] @group Plugin | ||||
DefaultsSectionStorage | class | Drupal\layout_builder\Plugin\SectionStorage | core/ |
Defines the 'defaults' section storage type. | 2 | |||
DefaultsSectionStorageInterface | interface | Drupal\layout_builder | core/ |
Defines an interface for an object that stores layout sections for defaults. | 1 | 5 | ||
DefaultsSectionStorageTest | class | Drupal\Tests\layout_builder\Unit | core/ |
@coversDefaultClass \Drupal\layout_builder\Plugin\SectionStorage\DefaultsSectionStorage[[api-linebreak]] | ||||
DefaultsSectionStorageTest | class | Drupal\Tests\layout_builder\Kernel | core/ |
@coversDefaultClass \Drupal\layout_builder\Plugin\SectionStorage\DefaultsSectionStorage[[api-linebreak]] | ||||
DefaultsTestPluginManager | class | Drupal\plugin_test\Plugin | core/ |
Defines a plugin manager used by Plugin API unit tests. | 1 | |||
DefaultStyle | class | Drupal\views\Plugin\views\style | core/ |
Unformatted style plugin to render rows. | 1 | |||
DefaultSummary | class | Drupal\views\Plugin\views\style | core/ |
The default style plugin for summaries. | 1 | 1 | ||
DefaultTableMapping | class | Drupal\Core\Entity\Sql | core/ |
Defines a default table mapping class. | 2 | 4 | ||
DefaultTableMappingIntegrationTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests the default table mapping class for content entities stored in SQL. | ||||
DefaultTableMappingTest | class | Drupal\Tests\Core\Entity\Sql | core/ |
@coversDefaultClass \Drupal\Core\Entity\Sql\DefaultTableMapping[[api-linebreak]] @group Entity | ||||
DefaultValue | class | Drupal\migrate\Plugin\migrate\process | core/ |
Returns a given default value if the input is empty. | 1 | |||
DefaultValueTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests the default_value process plugin. | ||||
DefaultValueWidgetTest | class | Drupal\Tests\field_ui\FunctionalJavascript | core/ |
Tests the default value widget in Field UI. | ||||
DefaultViewRecentCommentsTest | class | Drupal\Tests\comment\Functional\Views | core/ |
Tests results for the Recent Comments view shipped with the module. | ||||
DefaultViewsTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests enabling, disabling, and reverting default views via the listing page. | ||||
DefaultViewsTest | class | Drupal\Tests\views\Functional | core/ |
Tests the default views provided by views. | ||||
DefaultWizardDeriver | class | Drupal\views\Plugin\Derivative | core/ |
A derivative class which provides automatic wizards for all base tables. | 1 | |||
DefaultWorkspaceHandler | class | Drupal\workspaces\Entity\Handler | core/ |
Common customizations for most entity types. | 2 | 2 | ||
DefinedTestAccessCheck | class | Drupal\router_test\Access | core/ |
Defines an access checker similar to DefaultAccessCheck. | 1 | |||
DelayableQueueInterface | interface | Drupal\Core\Queue | core/ |
Delayable queue interface. | 1 | 1 | ||
DelayedRequeueException | class | Drupal\Core\Queue | core/ |
Throw this exception to leave an item in the queue until its lock expires. | 5 | |||
Delete | in drupal:9.4.0 and is removed from drupal:11.0.0. The PostgreSQL database driver has been moved to the pgsql module. |
class | Drupal\Core\Database\Driver\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Delete. | 1 | ||
Delete | class | Drupal\Core\Database\Query | core/ |
General class for an abstracted DELETE operation. | 4 | 7 | ||
Delete | class | Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses | core/ |
CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Delete. | ||||
Delete | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Query\Delete. | ||||
Delete | class | Drupal\mysql\Driver\Database\mysql | core/ |
MySQL implementation of \Drupal\Core\Database\Query\Delete. | ||||
Delete | class | Drupal\pgsql\Driver\Database\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Delete. | 1 | 1 | ||
DeleteAction | class | Drupal\Core\Action\Plugin\Action | core/ |
Redirects to an entity deletion form. | ||||
DeleteActionTest | class | Drupal\KernelTests\Core\Action | core/ |
@group Action | ||||
DeleteDefaultLanguageException | class | Drupal\language\Exception | core/ |
Exception thrown when deleting the default language. | 2 | |||
DeletedFieldsRepository | class | Drupal\Core\Field | core/ |
Provides a repository for deleted field and field storage objects. | 2 | |||
DeletedFieldsRepositoryInterface | interface | Drupal\Core\Field | core/ |
Provides an interface for a deleted fields repository. | 1 | 2 | ||
DeletedWorkspaceConstraint | class | Drupal\workspaces\Plugin\Validation\Constraint | core/ |
Deleted workspace constraint. | ||||
DeletedWorkspaceConstraintValidator | class | Drupal\workspaces\Plugin\Validation\Constraint | core/ |
Checks if data still exists for a deleted workspace ID. | ||||
DeleteForm | class | Drupal\comment\Form | core/ |
Provides the comment delete confirmation form. | ||||
DeleteForm | class | Drupal\forum\Form | core/ |
Builds the form to delete a forum term. | 1 | |||
DeleteMultiple | class | Drupal\node\Form | core/ |
Provides a node deletion confirmation form. | 1 | |||
DeleteMultipleForm | class | Drupal\Core\Entity\Form | core/ |
Provides an entities deletion confirmation form. | 2 | 2 | ||
DeleteMultipleFormTest | class | Drupal\FunctionalTests\Entity | core/ |
Tests the delete multiple confirmation form. | ||||
DeleteTest | class | Drupal\Tests\file\Kernel | core/ |
Tests the file delete function. | ||||
DeleteTruncateTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests delete and truncate queries. | ||||
DemoteNode | class | Drupal\node\Plugin\Action | core/ |
Demotes a node. | ||||
DemoUmamiProfileTest | class | Drupal\Tests\demo_umami\Functional | core/ |
Tests demo_umami profile. | ||||
DenyAdminRoutes | class | Drupal\dynamic_page_cache\PageCache\ResponsePolicy | core/ |
Cache policy for routes with the '_admin_route' option set. | 2 | |||
DenyNoCacheRoutes | class | Drupal\Core\PageCache\ResponsePolicy | core/ |
Cache policy for routes with the 'no_cache' option set. | 2 | |||
DenyNodePreview | class | Drupal\node\PageCache | core/ |
Cache policy for node preview page. | 1 | 2 | ||
DenyNodePreviewTest | class | Drupal\Tests\node\Unit\PageCache | core/ |
@coversDefaultClass \Drupal\node\PageCache\DenyNodePreview[[api-linebreak]] @group node | ||||
DenyPrivateImageStyleDownload | class | Drupal\image\PageCache | core/ |
Cache policy for image preview page. | 1 | 2 |
Pagination
- Previous page
- Page 46
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.