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 |
---|---|---|---|---|---|---|---|---|
DefaultSingleLazyPluginCollectionTest | class | Drupal\Tests\Core\Plugin | core/ |
@coversDefaultClass \Drupal\Core\Plugin\DefaultSingleLazyPluginCollection @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 | ||||
DefaultsSectionStorageTest | class | Drupal\Tests\layout_builder\Kernel | core/ |
@coversDefaultClass \Drupal\layout_builder\Plugin\SectionStorage\DefaultsSectionStorage | ||||
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 one after another with no decorations. | 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. | 3 | 6 | ||
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 @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. | ||||
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. | ||||
DefinedTestAccessCheck | class | Drupal\router_test\Access | core/ |
Defines an access checker similar to DefaultAccessCheck | 1 | |||
Delete | class | Drupal\driver_test\Driver\Database\DrivertestMysql | core/ |
MySQL test implementation of \Drupal\Core\Database\Query\Delete. | ||||
Delete | class | Drupal\driver_test\Driver\Database\DrivertestPgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Delete. | ||||
Delete | class | Drupal\Core\Database\Driver\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Query\Delete. | ||||
Delete | class | Drupal\Core\Database\Driver\mysql | core/ |
MySQL implementation of \Drupal\Core\Database\Query\Delete. | 1 | 1 | ||
Delete | class | Drupal\Core\Database\Driver\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Delete. | 1 | 1 | ||
Delete | class | Drupal\Core\Database\Query | core/ |
General class for an abstracted DELETE operation. | 3 | 4 | ||
DeleteAction | class | Drupal\Core\Action\Plugin\Action | core/ |
Redirects to an entity deletion form. | 2 | 2 | ||
DeleteActionTest | class | Drupal\KernelTests\Core\Action | core/ |
@group Action | ||||
DeleteComment | in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Action\Plugin\Action\DeleteAction instead. |
class | Drupal\comment\Plugin\Action | core/ |
Deletes a comment. | |||
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. | ||||
DeleteFeedItemTest | class | Drupal\Tests\aggregator\Functional | core/ |
Delete feed items from a feed. | ||||
DeleteFeedTest | class | Drupal\Tests\aggregator\Functional | core/ |
Delete feed test. | ||||
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. | ||||
DeleteNode | in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Action\Plugin\Action\DeleteAction instead. |
class | Drupal\node\Plugin\Action | core/ |
Redirects to a node deletion 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. | ||||
DenormalizeTest | class | Drupal\Tests\hal\Kernel | core/ |
Tests HAL denormalization edge cases for EntityResource. | ||||
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 @group node | ||||
DenyPrivateImageStyleDownload | class | Drupal\image\PageCache | core/ |
Cache policy for image preview page. | 1 | 2 |
Pagination
- Previous page
- Page 43
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.