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 |
---|---|---|---|---|---|---|---|---|
DisallowNonCapturingCatchSniff | class | SlevomatCodingStandard\Sniffs\Exceptions | vendor/ |
|||||
DisallowNullSafeObjectOperatorSniff | class | SlevomatCodingStandard\Sniffs\ControlStructures | vendor/ |
|||||
DisallowNumericLiteralSeparatorSniff | class | SlevomatCodingStandard\Sniffs\Numbers | vendor/ |
|||||
DisallowObjectStringIndexSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Objects | vendor/ |
|||||
DisallowOneLinePropertyDocCommentSniff | class | SlevomatCodingStandard\Sniffs\Commenting | vendor/ |
|||||
DisallowPartiallyKeyedSniff | class | SlevomatCodingStandard\Sniffs\Arrays | vendor/ |
|||||
DisallowReferenceSniff | class | SlevomatCodingStandard\Sniffs\PHP | vendor/ |
|||||
DisallowRequestSuperglobalSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\PHP | vendor/ |
|||||
DisallowRobotsIndexingListener | class | Symfony\Component\HttpKernel\EventListener | vendor/ |
Ensures that the application is not indexed by search engines. | ||||
DisallowSelfActionsSniff | class | PHP_CodeSniffer\Standards\MySource\Sniffs\Channels | vendor/ |
|||||
DisallowShortArraySyntaxSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays | vendor/ |
|||||
DisallowShortOpenTagSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\PHP | vendor/ |
|||||
DisallowShortTernaryOperatorSniff | class | SlevomatCodingStandard\Sniffs\ControlStructures | vendor/ |
|||||
DisallowSizeFunctionsInLoopsSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP | vendor/ |
|||||
DisallowSpaceIndentSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace | vendor/ |
|||||
DisallowStringExpressionPropertyFetchSniff | class | SlevomatCodingStandard\Sniffs\Classes | vendor/ |
|||||
DisallowSuperGlobalVariableSniff | class | SlevomatCodingStandard\Sniffs\Variables | vendor/ |
|||||
DisallowTabIndentSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace | vendor/ |
|||||
DisallowTrailingCommaInCallSniff | class | SlevomatCodingStandard\Sniffs\Functions | vendor/ |
|||||
DisallowTrailingCommaInClosureUseSniff | class | SlevomatCodingStandard\Sniffs\Functions | vendor/ |
|||||
DisallowTrailingCommaInDeclarationSniff | class | SlevomatCodingStandard\Sniffs\Functions | vendor/ |
|||||
DisallowTrailingMultiLineTernaryOperatorSniff | class | SlevomatCodingStandard\Sniffs\ControlStructures | vendor/ |
|||||
DisallowVariableParsingSniff | class | SlevomatCodingStandard\Sniffs\Strings | vendor/ |
|||||
DisallowVariableVariableSniff | class | SlevomatCodingStandard\Sniffs\Variables | vendor/ |
|||||
DisallowYodaComparisonSniff | class | SlevomatCodingStandard\Sniffs\ControlStructures | vendor/ |
Bigger value must be on the left side: | ||||
DisallowYodaConditionsSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\ControlStructures | vendor/ |
|||||
DiscardLayoutChangesForm | class | Drupal\layout_builder\Form | core/ |
Discards any pending changes to the layout. | ||||
DiscouragedFunctionsRule | class | mglaman\PHPStanDrupal\Rules\Drupal\Coder | vendor/ |
Based on Drupal_Sniffs_Functions_DiscouragedFunctionsSniff. | ||||
DiscouragedFunctionsSniff | class | Drupal\Sniffs\Functions | vendor/ |
Discourage the use of debug functions. | ||||
DiscouragedFunctionsSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP | vendor/ |
|||||
DiscourageGotoSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\PHP | vendor/ |
|||||
DiscoverableInterface | interface | Drupal\Component\Discovery | core/ |
Interface for classes providing a type of discovery. | 2 | |||
Discovery | class | OpenTelemetry\SDK\Common\Http\Psr\Client | vendor/ |
1 | ||||
DiscoveryCachedTrait | trait | Drupal\Component\Plugin\Discovery | core/ |
1 | ||||
DiscoveryException | class | Drupal\Component\Discovery | core/ |
Exception thrown during discovery if the data is invalid. | 1 | |||
DiscoveryFailedException | final class | Http\Discovery\Exception | vendor/ |
Thrown when all discovery strategies fails to find a resource. | 8 | |||
DiscoveryInterface | interface | OpenTelemetry\SDK\Common\Http\Psr\Client\Discovery | vendor/ |
4 | 1 | |||
DiscoveryInterface | interface | Drupal\Component\Plugin\Discovery | core/ |
Defines the minimum requirements for a plugin discovery component. | 17 | 16 | ||
DiscoveryStrategy | interface | Http\Discovery\Strategy | vendor/ |
@author Tobias Nyholm <tobias.nyholm@gmail.com> | 4 | 1 | ||
DiscoveryTrait | trait | Drupal\Component\Plugin\Discovery | core/ |
10 | ||||
DiscriminatorMap | class | Symfony\Component\Serializer\Attribute | vendor/ |
@author Samuel Roze <samuel.roze@gmail.com> | 1 | |||
DiskSpaceValidator | class | Drupal\package_manager\Validator | core/ |
Validates that there is enough free disk space to do stage operations. | ||||
Dispatcher | interface | PHPUnit\Event | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
DispatchingEmitter | final class | PHPUnit\Event | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
Display | class | Drupal\views_ui\Form\Ajax | core/ |
Provides a form for editing the Views display. | ||||
DisplayExtenderPluginBase | abstract class | Drupal\views\Plugin\views\display_extender | core/ |
Base class for Views display extender plugins. | 1 | |||
DisplayLink | class | Drupal\views\Plugin\views\area | core/ |
Views area display_link handler. | ||||
DisplayMenuInterface | interface | Drupal\views\Plugin\views\display | core/ |
Defines an interface for displays that provide menu links. | 1 | 1 | ||
DisplayModeLocalAction | class | Drupal\field_ui | core/ |
Defines a local action plugin with modal dialog. | 1 | |||
DisplayPluginBase | abstract class | Drupal\views\Plugin\views\display | core/ |
Base class for views display plugins. | 6 | 46 |