Classes, traits, and interfaces - 9.5.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 1523
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
Delete | class | Drupal\driver_test\Driver\Database\DrivertestMysqlDeprecatedVersion | 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\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. | 2 | 2 | ||
DeleteAction | class | Drupal\Core\Action\Plugin\Action | core/ |
Redirects to an entity deletion form. | ||||
DeleteActionTest | class | Drupal\KernelTests\Core\Action | core/ |
@group Action | ||||
DeleteAuthorizeSettingsUpdateTest | class | Drupal\Tests\system\Functional\Update | core/ |
Tests the upgrade path for removal the system.authorize configuration. | ||||
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. | ||||
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 | ||
DenyPrivateImageStyleDownloadTest | class | Drupal\Tests\image\Unit\PageCache | core/ |
@coversDefaultClass \Drupal\image\PageCache\DenyPrivateImageStyleDownload @group image | ||||
DenyTestAuthRequests | class | Drupal\rest_test\PageCache\RequestPolicy | core/ |
Cache policy for pages requested with REST Test Auth. | 2 | |||
Dependency | class | Drupal\Core\Extension | core/ |
A value object representing dependency information. | 2 | |||
DependencyFieldItem | class | Drupal\Tests\field\Unit | core/ |
A test class. | ||||
DependencyHookInvocationTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Tests the hook invocation for determining update dependencies. | ||||
DependencyMissingTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Tests that missing update dependencies are correctly flagged. | ||||
DependencyOrderingTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Tests that update functions are run in the proper order. | ||||
DependencySerializationTest | class | Drupal\Tests\Core\DependencyInjection | core/ |
@coversDefaultClass \Drupal\Core\DependencyInjection\DependencySerializationTrait @group DependencyInjection | ||||
DependencySerializationTestDummy | class | Drupal\Tests\Core\DependencyInjection | core/ |
Defines a test class which has a single service as dependency. | ||||
DependencySerializationTrait | trait | Drupal\Core\DependencyInjection | core/ |
Provides dependency injection friendly methods for serialization. | 51 | |||
DependencySerializationTraitPass | in drupal:9.5.0 and is removed from drupal:11.0.0. The _serviceId property is no longer part of the container. Use \Drupal\Core\DrupalKernelInterface::getServiceIdMapping() instead. |
class | Drupal\Core\DependencyInjection\Compiler | core/ |
Sets the _serviceId property on all services. | |||
DependencyTest | class | Drupal\Tests\Core\Extension | core/ |
@coversDefaultClass \Drupal\Core\Extension\Dependency @group Extension | ||||
DependencyTest | class | Drupal\Tests\system\Functional\Module | core/ |
Enable module without dependency enabled. | ||||
DependencyTrait | trait | Drupal\Core\Entity | core/ |
Provides a trait for managing an object's dependencies. | 6 | |||
DependentAccessInterface | interface | Drupal\block_content\Access | core/ |
Interface for AccessibleInterface objects that have an access dependency. | 1 | 1 | ||
DependentAccessTest | class | Drupal\Tests\block_content\Unit\Access | core/ |
@coversDefaultClass \Drupal\block_content\Access\RefinableDependentAccessTrait | ||||
DependentPluginDefinitionInterface | interface | Drupal\Core\Plugin\Definition | core/ |
Provides an interface for a plugin definition that has dependencies. | 1 | 3 | ||
DependentPluginDefinitionTrait | trait | Drupal\Core\Plugin\Definition | core/ |
Provides a trait for a plugin definition that has dependencies. | 1 | |||
DependentPluginInterface | interface | Drupal\Component\Plugin | core/ |
Provides an interface for a plugin that has dependencies. | 24 | 28 | ||
DependentWithRemovalPluginInterface | interface | Drupal\views\Plugin | core/ |
Provides an interface for a plugin that has dependencies that can be removed. | 2 | 3 | ||
DeprecatedArray | class | Drupal\Component\Utility | core/ |
An array that triggers a deprecation warning when accessed. |
Pagination
- Previous page
- Page 44
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.