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 |
---|---|---|---|---|---|---|---|---|
UnusedInheritedVariablePassedToClosureSniff | class | SlevomatCodingStandard\Sniffs\Functions | vendor/ |
|||||
UnusedParameterSniff | class | SlevomatCodingStandard\Sniffs\Functions | vendor/ |
|||||
UnusedPrivateMethodSniff | class | DrupalPractice\Sniffs\Objects | vendor/ |
Checks that private methods are actually used in a class. | ||||
UnusedSystemSniff | class | PHP_CodeSniffer\Standards\MySource\Sniffs\Channels | vendor/ |
|||||
UnusedUsesSniff | class | SlevomatCodingStandard\Sniffs\Namespaces | vendor/ |
|||||
UnusedUseStatementSniff | class | Drupal\Sniffs\Classes | vendor/ |
Checks for "use" statements that are not needed in a file. | ||||
UnusedVariableSniff | class | SlevomatCodingStandard\Sniffs\Variables | vendor/ |
|||||
UnusualElements | class | Egulias\EmailValidator\Result\Reason | vendor/ |
1 | ||||
UnwrappingDenormalizer | final class | Symfony\Component\Serializer\Normalizer | vendor/ |
@author Eduard Bulava <bulavaeduard@gmail.com> | 1 | |||
UnwrappingDenormalizerContextBuilder | final class | Symfony\Component\Serializer\Context\Normalizer | vendor/ |
A helper providing autocompletion for available UnwrappingDenormalizer options. | ||||
Update | class | Drupal\mysql\Driver\Database\mysql | core/ |
MySQL implementation of \Drupal\Core\Database\Query\Update. | ||||
Update | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Query\Update. | ||||
Update | class | Drupal\pgsql\Driver\Database\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Update. | ||||
Update | class | Drupal\Core\Database\Query | core/ |
General class for an abstracted UPDATE operation. | 3 | 4 | ||
UpdateBackend | class | Drupal\Core\Update | core/ |
Defines a cache backend for use during Drupal database updates. | ||||
UpdateBlockForm | class | Drupal\layout_builder\Form | core/ |
Provides a form to update a block. | 1 | |||
UpdateBuildIdCommand | class | Drupal\Core\Ajax | core/ |
Ajax command for updating the form build ID. | 1 | |||
UpdateCacheBackendFactory | class | Drupal\Core\Update | core/ |
Cache factory implementation for use during Drupal database updates. | ||||
UpdateCommand | class | Composer\Command | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> @author Nils Adermann <naderman@naderman.de> | ||||
UpdateCompilerPass | class | Drupal\Core\Update | core/ |
Removes services with unmet dependencies. | ||||
UpdateController | class | Drupal\update\Controller | core/ |
Controller routines for update routes. | ||||
UpdateDataSubscriber | final class | Drupal\package_manager\EventSubscriber | core/ |
Clears stale update data once staged changes have been applied. | ||||
UpdateException | class | Drupal\Core\Utility | core/ |
Exception class used to throw error if a module update fails. | 1 | |||
UpdateExpression | class | Peast\Syntax\Node | vendor/ |
A node that represents an update expression. For example: a++ | ||||
UpdateFetcher | class | Drupal\update | core/ |
Fetches project information from remote locations. | 2 | |||
UpdateFetcherInterface | interface | Drupal\update | core/ |
Fetches project information from remote locations. | 1 | 8 | ||
UpdateHookRegistry | class | Drupal\Core\Update | core/ |
Provides module updates versions handling. | 3 | |||
UpdateHooks | class | Drupal\update\Hook | core/ |
Hook implementations for update. | ||||
UpdateKernel | class | Drupal\Core\Update | core/ |
Defines a kernel which is used primarily to run the update of Drupal. | 4 | |||
UpdateManager | class | Drupal\update | core/ |
Default implementation of UpdateManagerInterface. | 2 | |||
UpdateManagerAccessCheck | in drupal:11.1.0 and is removed from drupal:12.0.0. There is no replacement. |
class | Drupal\update\Access | core/ |
Determines whether allow authorized operations is set. | 2 | ||
UpdateManagerInterface | interface | Drupal\update | core/ |
Manages project update information. | 1 | 10 | ||
UpdateManagerUpdate | class | Drupal\update\Form | core/ |
Configure update settings for this site. | 1 | |||
UpdateOperation | class | Composer\DependencyResolver\Operation | vendor/ |
Solver update operation. | 5 | |||
UpdateProcessor | class | Drupal\update | core/ |
Process project update information. | 1 | 1 | 2 | |
UpdateProcessorInterface | interface | Drupal\update | core/ |
Processor of project update information. | 1 | |||
Updater | abstract class | Drupal\Core\Updater | core/ |
Defines the base class for Updaters used in Drupal. | 2 | 1 | ||
UpdateReady | class | Drupal\update\Form | core/ |
Configure update settings for this site. | 1 | |||
UpdateRegistry | class | Drupal\Core\Update | core/ |
Provides all and missing update implementations. | 2 | |||
UpdaterException | class | Drupal\Core\Updater | core/ |
Defines an Exception class for Drupal\Core\Updater\Updater class hierarchy. | 1 | 1 | ||
UpdaterFileTransferException | class | Drupal\Core\Updater | core/ |
Defines a child class of Drupal\Core\Updater\UpdaterException. | ||||
UpdaterInterface | interface | Drupal\Core\Updater | core/ |
Defines an interface for a class which can update a Drupal project. | 2 | |||
UpdateRoot | class | Drupal\update | core/ |
Gets the root path used by the Update Manager to install or update projects. | 2 | |||
UpdateRouteSubscriber | class | Drupal\update\Routing | core/ |
Route subscriber for Update module routes. | 2 | |||
UpdateSchemaLocation | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
UpdateSelectionCommand | class | Drupal\media_library\Ajax | core/ |
AJAX command for adding media items to the media library selection. | 1 | |||
UpdateServiceProvider | class | Drupal\Core\Update | core/ |
Customizes the container for running updates. | ||||
UpdateSettings | class | Drupal\update\Plugin\migrate\source | core/ |
Drupal 6/7 Update settings source from database. | ||||
UpdateSettingsForm | class | Drupal\update | core/ |
Configure update settings for this site. | 1 | |||
UpDownCounter | final class | OpenTelemetry\SDK\Metrics | vendor/ |
@internal |