Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core

Primary tabs

  • Drupal 11.1.x

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/myclabs/deep-copy/src/DeepCopy/DeepCopy.php @final 4
DeepExitException class PHP_CodeSniffer\Exceptions vendor/squizlabs/php_codesniffer/src/Exceptions/DeepExitException.php 8
DefaultAccessCheck class Drupal\Core\Access core/lib/Drupal/Core/Access/DefaultAccessCheck.php Allows access to routes to be controlled by an '_access' boolean parameter.
DefaultAggregationProviderInterface interface OpenTelemetry\SDK\Metrics vendor/open-telemetry/sdk/Metrics/DefaultAggregationProviderInterface.php 1 1
DefaultAggregationProviderTrait trait OpenTelemetry\SDK\Metrics vendor/open-telemetry/sdk/Metrics/DefaultAggregationProviderTrait.php 1
DefaultConfiguration final class PHPUnit\TextUI\XmlConfiguration vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/DefaultConfiguration.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 2
DefaultDeprecatedScopeResolver final class PHPStan\Rules\Deprecations vendor/phpstan/phpstan-deprecation-rules/src/Rules/Deprecations/DefaultDeprecatedScopeResolver.php
DefaultDisplay class Drupal\views\Plugin\views\display core/modules/views/src/Plugin/views/display/DefaultDisplay.php A plugin to handle defaults on a view.
DefaultDisplayExtender class Drupal\views\Plugin\views\display_extender core/modules/views/src/Plugin/views/display_extender/DefaultDisplayExtender.php Default display extender plugin; does nothing.
DefaultExceptionHtmlSubscriber class Drupal\Core\EventSubscriber core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.php Exception subscriber for handling core default HTML error pages. 1
DefaultExceptionSubscriber class Drupal\serialization\EventSubscriber core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php Handles default error responses in serialization formats. 1 1 2
DefaultExceptionSubscriber class Drupal\jsonapi\EventSubscriber core/modules/jsonapi/src/EventSubscriber/DefaultExceptionSubscriber.php Serializes exceptions in compliance with the JSON:API specification. 2
DefaultFactory class Drupal\Component\Plugin\Factory core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php Default plugin factory. 2 10
DefaultFileFormatter class Drupal\file\Plugin\Field\FieldFormatter core/modules/file/src/Plugin/Field/FieldFormatter/DefaultFileFormatter.php Formatter for a text field on a file entity that links the field to the file.
DefaultFilter class Twig\Node\Expression\Filter vendor/twig/twig/src/Node/Expression/Filter/DefaultFilter.php Returns the value or the default value when it is undefined or empty. 1
DefaultHtmlRouteProvider class Drupal\Core\Entity\Routing core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php Provides HTML routes for entities. 1 1
DefaultHtmlToTextConverter class Symfony\Component\Mime\HtmlToTextConverter vendor/symfony/mime/HtmlToTextConverter/DefaultHtmlToTextConverter.php @author Fabien Potencier <fabien@symfony.com>
DefaultLangcode class Drupal\language\Plugin\migrate\destination core/modules/language/src/Plugin/migrate/destination/DefaultLangcode.php Provides a destination plugin for the default langcode config.
DefaultLanguageItem class Drupal\language core/modules/language/src/DefaultLanguageItem.php Alternative plugin implementation of the 'language' field type.
DefaultLanguageRenderer class Drupal\views\Entity\Render core/modules/views/src/Entity/Render/DefaultLanguageRenderer.php Renders entities in their default language.
DefaultLazyPluginCollection class Drupal\Core\Plugin core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php Provides a default plugin collection for a plugin type. 5 5
DefaultMenuLinkTreeManipulators class Drupal\Core\Menu core/lib/Drupal/Core/Menu/DefaultMenuLinkTreeManipulators.php Provides a couple of menu link tree manipulators.
DefaultNameGenerator class Ramsey\Uuid\Generator vendor/ramsey/uuid/src/Generator/DefaultNameGenerator.php DefaultNameGenerator generates strings of binary data based on a namespace, name, and hashing algorithm
DefaultNegotiator class Drupal\Core\Theme core/lib/Drupal/Core/Theme/DefaultNegotiator.php Determines the default theme of the site.
DefaultPasswordGenerator class Drupal\Core\Password core/lib/Drupal/Core/Password/DefaultPasswordGenerator.php Provides a default password generator.
DefaultPhpProcess class PHPUnit\Util\PHP vendor/phpunit/phpunit/src/Util/PHP/DefaultPhpProcess.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
DefaultPluginManager class Drupal\Core\Plugin core/lib/Drupal/Core/Plugin/DefaultPluginManager.php Base class for plugin managers. 46 46
DefaultPolicy class Composer\DependencyResolver vendor/composer/composer/src/Composer/DependencyResolver/DefaultPolicy.php @author Nils Adermann <naderman@naderman.de> @author Jordi Boggiano <j.boggiano@seld.be> 2
DefaultPrinter final class PHPUnit\TextUI\Output vendor/phpunit/phpunit/src/TextUI/Output/Printer/DefaultPrinter.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1
DefaultRequestPolicy class Drupal\Core\PageCache core/lib/Drupal/Core/PageCache/DefaultRequestPolicy.php The default page cache request policy.
DefaultRequestPolicy class Drupal\dynamic_page_cache\PageCache\RequestPolicy core/modules/dynamic_page_cache/src/PageCache/RequestPolicy/DefaultRequestPolicy.php The default Dynamic Page Cache request policy. 2
DefaultResultCache final class PHPUnit\Runner\ResultCache vendor/phpunit/phpunit/src/Runner/ResultCache/DefaultResultCache.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1
Defaults interface OpenTelemetry\SDK\Common\Configuration vendor/open-telemetry/sdk/Common/Configuration/Defaults.php 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/symfony/dependency-injection/Loader/Configurator/DefaultsConfigurator.php @author Nicolas Grekas <p@tchwork.com> 1
DefaultSelection class Drupal\Core\Entity\Plugin\EntityReferenceSelection core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/DefaultSelection.php Default plugin implementation of the Entity Reference Selection plugin. 8 7
DefaultSelectionDeriver class Drupal\Core\Entity\Plugin\Derivative core/lib/Drupal/Core/Entity/Plugin/Derivative/DefaultSelectionDeriver.php Provides derivative plugins for the DefaultSelection plugin. 1
DefaultsEntityForm class Drupal\layout_builder\Form core/modules/layout_builder/src/Form/DefaultsEntityForm.php Provides a form containing the Layout Builder UI for defaults. 1
DefaultSingleLazyPluginCollection class Drupal\Core\Plugin core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php Provides a default plugin collection for a plugin type. 3 6
DefaultsSectionStorage class Drupal\layout_builder\Plugin\SectionStorage core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php Defines the 'defaults' section storage type.
DefaultsSectionStorageInterface interface Drupal\layout_builder core/modules/layout_builder/src/DefaultsSectionStorageInterface.php Defines an interface for an object that stores layout sections for defaults. 1 3
DefaultStyle class Drupal\views\Plugin\views\style core/modules/views/src/Plugin/views/style/DefaultStyle.php Unformatted style plugin to render rows.
DefaultSummary class Drupal\views\Plugin\views\style core/modules/views/src/Plugin/views/style/DefaultSummary.php The default style plugin for summaries. 1 1
DefaultTableMapping class Drupal\Core\Entity\Sql core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php Defines a default table mapping class.
DefaultTimeGenerator class Ramsey\Uuid\Generator vendor/ramsey/uuid/src/Generator/DefaultTimeGenerator.php 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/ramsey/uuid/src/Builder/DefaultUuidBuilder.php @psalm-immutable
DefaultValue class Drupal\migrate\Plugin\migrate\process core/modules/migrate/src/Plugin/migrate/process/DefaultValue.php Returns a given default value if the input is empty.
DefaultValueResolver final class Symfony\Component\HttpKernel\Controller\ArgumentResolver vendor/symfony/http-kernel/Controller/ArgumentResolver/DefaultValueResolver.php Yields the default value defined in the action signature when no value has been given. 1
DefaultValueSanitizeSniff class DrupalPractice\Sniffs\FunctionCalls vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/FunctionCalls/DefaultValueSanitizeSniff.php Check that sanitization functions such as check_plain() are not used on Form API #default_value elements.
DefaultWizardDeriver class Drupal\views\Plugin\Derivative core/modules/views/src/Plugin/Derivative/DefaultWizardDeriver.php A derivative class which provides automatic wizards for all base tables. 1
DefaultWorkspaceHandler class Drupal\workspaces\Entity\Handler core/modules/workspaces/src/Entity/Handler/DefaultWorkspaceHandler.php Common customizations for most entity types. 1 1

Pagination

  • First page
  • Previous page
  • …
  • Page 44
  • Page 45
  • Page 46
  • Page 47
  • Page 48
  • Page 49
  • Page 50
  • Page 51
  • Page 52
  • …
  • Next page
  • Last page

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal