Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
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
File
-
core/
core.api.php, line 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
DeepCopy | class | DeepCopy | vendor/ |
@final | 4 | |||
DeepExitException | class | PHP_CodeSniffer\Exceptions | vendor/ |
8 | ||||
DefaultAccessCheck | class | Drupal\Core\Access | core/ |
Allows access to routes to be controlled by an '_access' boolean parameter. | ||||
DefaultAggregationProviderInterface | interface | OpenTelemetry\SDK\Metrics | vendor/ |
1 | 1 | |||
DefaultAggregationProviderTrait | trait | OpenTelemetry\SDK\Metrics | vendor/ |
1 | ||||
DefaultConfiguration | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
DefaultDeprecatedScopeResolver | final class | PHPStan\Rules\Deprecations | vendor/ |
|||||
DefaultDisplay | class | Drupal\views\Plugin\views\display | core/ |
A plugin to handle defaults on a view. | ||||
DefaultDisplayExtender | class | Drupal\views\Plugin\views\display_extender | core/ |
Default display extender plugin; does nothing. | ||||
DefaultExceptionHtmlSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Exception subscriber for handling core default HTML error pages. | 1 | |||
DefaultExceptionSubscriber | class | Drupal\serialization\EventSubscriber | core/ |
Handles default error responses in serialization formats. | 1 | 1 | 2 | |
DefaultExceptionSubscriber | class | Drupal\jsonapi\EventSubscriber | core/ |
Serializes exceptions in compliance with the JSON:API specification. | 2 | |||
DefaultFactory | class | Drupal\Component\Plugin\Factory | core/ |
Default plugin factory. | 2 | 10 | ||
DefaultFileFormatter | class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Formatter for a text field on a file entity that links the field to the file. | ||||
DefaultFilter | class | Twig\Node\Expression\Filter | vendor/ |
Returns the value or the default value when it is undefined or empty. | 1 | |||
DefaultHtmlRouteProvider | class | Drupal\Core\Entity\Routing | core/ |
Provides HTML routes for entities. | 1 | 1 | ||
DefaultHtmlToTextConverter | class | Symfony\Component\Mime\HtmlToTextConverter | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | ||||
DefaultLangcode | class | Drupal\language\Plugin\migrate\destination | core/ |
Provides a destination plugin for the default langcode config. | ||||
DefaultLanguageItem | class | Drupal\language | core/ |
Alternative plugin implementation of the 'language' field type. | ||||
DefaultLanguageRenderer | class | Drupal\views\Entity\Render | core/ |
Renders entities in their default language. | ||||
DefaultLazyPluginCollection | class | Drupal\Core\Plugin | core/ |
Provides a default plugin collection for a plugin type. | 5 | 5 | ||
DefaultMenuLinkTreeManipulators | class | Drupal\Core\Menu | core/ |
Provides a couple of menu link tree manipulators. | ||||
DefaultNameGenerator | class | Ramsey\Uuid\Generator | vendor/ |
DefaultNameGenerator generates strings of binary data based on a namespace, name, and hashing algorithm | ||||
DefaultNegotiator | class | Drupal\Core\Theme | core/ |
Determines the default theme of the site. | ||||
DefaultPasswordGenerator | class | Drupal\Core\Password | core/ |
Provides a default password generator. | ||||
DefaultPhpProcess | class | PHPUnit\Util\PHP | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
DefaultPluginManager | class | Drupal\Core\Plugin | core/ |
Base class for plugin managers. | 46 | 46 | ||
DefaultPolicy | class | Composer\DependencyResolver | vendor/ |
@author Nils Adermann <naderman@naderman.de> @author Jordi Boggiano <j.boggiano@seld.be> | 2 | |||
DefaultPrinter | final class | PHPUnit\TextUI\Output | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
DefaultRequestPolicy | class | Drupal\Core\PageCache | core/ |
The default page cache request policy. | ||||
DefaultRequestPolicy | class | Drupal\dynamic_page_cache\PageCache\RequestPolicy | core/ |
The default Dynamic Page Cache request policy. | 2 | |||
DefaultResultCache | final class | PHPUnit\Runner\ResultCache | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
Defaults | interface | OpenTelemetry\SDK\Common\Configuration | vendor/ |
Default values for environment variables defined by the OpenTelemetry specification and language specific variables for the PHP SDK. | 3 | |||
DefaultsConfigurator | class | Symfony\Component\DependencyInjection\Loader\Configurator | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 1 | |||
DefaultSelection | class | Drupal\Core\Entity\Plugin\EntityReferenceSelection | core/ |
Default plugin implementation of the Entity Reference Selection plugin. | 8 | 7 | ||
DefaultSelectionDeriver | class | Drupal\Core\Entity\Plugin\Derivative | core/ |
Provides derivative plugins for the DefaultSelection plugin. | 1 | |||
DefaultsEntityForm | class | Drupal\layout_builder\Form | core/ |
Provides a form containing the Layout Builder UI for defaults. | 1 | |||
DefaultSingleLazyPluginCollection | class | Drupal\Core\Plugin | core/ |
Provides a default plugin collection for a plugin type. | 3 | 6 | ||
DefaultsSectionStorage | class | Drupal\layout_builder\Plugin\SectionStorage | core/ |
Defines the 'defaults' section storage type. | ||||
DefaultsSectionStorageInterface | interface | Drupal\layout_builder | core/ |
Defines an interface for an object that stores layout sections for defaults. | 1 | 3 | ||
DefaultStyle | class | Drupal\views\Plugin\views\style | core/ |
Unformatted style plugin to render rows. | ||||
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. | ||||
DefaultTimeGenerator | class | Ramsey\Uuid\Generator | vendor/ |
DefaultTimeGenerator generates strings of binary data based on a node ID, clock sequence, and the current time | 1 | |||
DefaultUuidBuilder | Transition to { |
class | Ramsey\Uuid\Builder | vendor/ |
@psalm-immutable | |||
DefaultValue | class | Drupal\migrate\Plugin\migrate\process | core/ |
Returns a given default value if the input is empty. | ||||
DefaultValueResolver | final class | Symfony\Component\HttpKernel\Controller\ArgumentResolver | vendor/ |
Yields the default value defined in the action signature when no value has been given. | 1 | |||
DefaultValueSanitizeSniff | class | DrupalPractice\Sniffs\FunctionCalls | vendor/ |
Check that sanitization functions such as check_plain() are not used on Form API #default_value elements. | ||||
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. | 1 | 1 |