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 |
---|---|---|---|---|---|---|---|---|
Registry | class | OpenTelemetry\SDK | vendor/ |
A registry to enable central registration of components that the SDK requires but which may be provided by non-SDK modules, such as contrib and extension. @todo [breaking] deprecate this mechanism of setting up components, in favor of using SPI. | 10 | |||
Registry | final class | PHPUnit\TextUI\Configuration | vendor/ |
CLI options and XML configuration are static within a single PHPUnit process. It is therefore okay to use a Singleton registry here. | 10 | |||
Registry | final class | PHPUnit\Metadata\Annotation\Parser | vendor/ |
Reflection information, and therefore DocBlock information, is static within a single PHP process. It is therefore okay to use a Singleton registry here. | 1 | |||
RegistryRegistration | final class | OpenTelemetry\SDK\Metrics\MetricRegistration | vendor/ |
@internal | 1 | |||
RegularExpression | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
ReindexConfirm | class | Drupal\search\Form | core/ |
Provides the search reindex confirmation form. | 1 | |||
ReIndexInstaller | class | Composer\Installers | vendor/ |
|||||
ReinstallCommand | class | Composer\Command | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | ||||
RejectedPromise | class | GuzzleHttp\Promise | vendor/ |
A promise that has been rejected. | ||||
RejectedPromise | final class | React\Promise\Internal | vendor/ |
@internal | 2 | |||
RejectedPromise | final class | Http\Promise | vendor/ |
A rejected promise. | ||||
RejectionException | class | GuzzleHttp\Promise | vendor/ |
A special exception that is thrown when waiting on a rejected promise. | 2 | |||
RelatedPart | final class | Symfony\Component\Mime\Part\Multipart | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 2 | |||
Relationship | class | Drupal\jsonapi\JsonApiResource | core/ |
Represents references from one resource object to other resource object(s). | 3 | |||
RelationshipData | class | Drupal\jsonapi\JsonApiResource | core/ |
Represents the data of a relationship object or relationship document. | ||||
RelationshipNormalizer | class | Drupal\jsonapi\Normalizer | core/ |
Normalizes a JSON:API relationship object. | 2 | |||
RelationshipPluginBase | abstract class | Drupal\views\Plugin\views\relationship | core/ |
Relationship plugin base. | 5 | 1 | ||
RelationshipRouteAccessCheck | final class | Drupal\jsonapi\Access | core/ |
Defines a class to check access to related and relationship routes. | 1 | 2 | ||
Relative | class | PhpParser\Node\Name | vendor/ |
|||||
RelativePathCalculator | final class | PHPUnit\Runner\Baseline | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
ReliableQueueInterface | interface | Drupal\Core\Queue | core/ |
Reliable queue interface. | 1 | |||
RemoteAddressSniff | class | Drupal\Sniffs\Semantics | vendor/ |
Make sure that ip_address() or Drupal::request()->getClientIp() is used instead of $_SERVER['REMOTE_ADDR']. | ||||
RemoteFilesystem | class | Composer\Util | vendor/ |
@internal @author François Pluchino <francois.pluchino@opendisplay.com> @author Jordi Boggiano <j.boggiano@seld.be> @author Nils Adermann <naderman@naderman.de> | ||||
RemovableCacheInterface | interface | Twig\Cache | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 3 | 1 | ||
RemoveAbstractDefinitionsPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Removes abstract Definitions. | ||||
RemoveBeStrictAboutResourceUsageDuringSmallTestsAttribute | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
RemoveBeStrictAboutTodoAnnotatedTestsAttribute | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
RemoveBlockForm | class | Drupal\layout_builder\Form | core/ |
Provides a form to confirm the removal of a block. | 1 | |||
RemoveBuildParametersPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
1 | ||||
RemoveCacheResultFileAttribute | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
RemoveCacheTokensAttribute | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
RemoveCheckToStringNodeVisitor | final class | Drupal\Core\Template | core/ |
Defines a TwigNodeVisitor that replaces CheckToStringNodes. | ||||
RemoveCommand | class | Composer\Command | vendor/ |
@author Pierre du Plessis <pdples@gmail.com> @author Jordi Boggiano <j.boggiano@seld.be> | ||||
RemoveCommand | class | Drupal\Core\Ajax | core/ |
AJAX command for calling the jQuery remove() method. | 1 | |||
RemoveConversionToExceptionsAttributes | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
RemoveCoverageElementCacheDirectoryAttribute | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
RemoveCoverageElementProcessUncoveredFilesAttribute | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
RemovedPostUpdateNameException | class | Drupal\Core\Update | core/ |
An exception thrown for removed post-update functions. | ||||
RemoveEmptyControllerArgumentLocatorsPass | class | Symfony\Component\HttpKernel\DependencyInjection | vendor/ |
Removes empty service-locators registered for ServiceValueResolver. | ||||
RemoveEmptyFilter | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
RemoveListeners | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
RemoveLoggingElements | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
RemoveLogTypes | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
RemoveNoInteractionAttribute | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
RemovePrinterAttributes | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
RemovePrivateAliasesPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Remove private aliases from the container. They were only used to establish dependencies between services, and these dependencies have been resolved in one of the previous passes. | ||||
RemoveRoleUser | class | Drupal\user\Plugin\Action | core/ |
Removes a role from a user. | ||||
RemoveSectionForm | class | Drupal\layout_builder\Form | core/ |
Provides a form to confirm the removal of a section. | 1 | |||
RemoveTestDoxGroupsElement | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
RemoveTestSuiteLoaderAttributes | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit |