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 |
---|---|---|---|---|---|---|---|---|
TypeResolver | final class | phpDocumentor\Reflection | vendor/ |
22 | ||||
TypesNode | class | Twig\Node | vendor/ |
Represents a types node. | 1 | |||
TypesTokenParser | final class | Twig\TokenParser | vendor/ |
Declare variable types. | 1 | |||
TypeToken | class | Prophecy\Argument\Token | vendor/ |
Value type token. | ||||
TypeTrait | trait | Ramsey\Collection\Tool | vendor/ |
Provides functionality to check values for specific types. | 4 | |||
TypeValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Bernhard Schussek <bschussek@gmail.com> | ||||
Uid | class | Drupal\user\Plugin\views\argument | core/ |
Argument handler to accept a user id. | 1 | 1 | ||
UidNormalizer | final class | Symfony\Component\Serializer\Normalizer | vendor/ |
1 | ||||
UidNormalizerContextBuilder | final class | Symfony\Component\Serializer\Context\Normalizer | vendor/ |
A helper providing autocompletion for available UidNormalizer options. | ||||
UidRevision | class | Drupal\node\Plugin\views\argument | core/ |
Filter handler, accepts a user ID. | ||||
UidRevision | class | Drupal\node\Plugin\views\filter | core/ |
Filter handler to check for revisions a certain user has created. | ||||
UidValueResolver | final class | Symfony\Component\HttpKernel\Controller\ArgumentResolver | vendor/ |
|||||
UInt32Value | class | Google\Protobuf | vendor/ |
Wrapper message for `uint32`. The JSON representation for `UInt32Value` is JSON number. | ||||
UInt64Value | class | Google\Protobuf | vendor/ |
Wrapper message for `uint64`. The JSON representation for `UInt64Value` is JSON string. | ||||
Ulid | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is a valid Universally Unique Lexicographically Sortable Identifier (ULID). | ||||
UlidValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates whether the value is a valid ULID (Universally Unique Lexicographically Sortable Identifier). Cf https://github.com/ulid/spec for ULID specifications. | ||||
UnableToBuildUuidException | class | Ramsey\Uuid\Exception | vendor/ |
Thrown to indicate a builder is unable to build a UUID | 4 | |||
UnableToCaptureScreen | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\UnableToCaptureScreen class | ||||
UnableToGetDNSRecord | class | Egulias\EmailValidator\Result\Reason | vendor/ |
Used on SERVFAIL, TIMEOUT or other runtime and network errors | 1 | |||
UnableToSetCookie | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\UnableToSetCookie class | ||||
UnanimousStrategy | class | Symfony\Component\Lock\Strategy | vendor/ |
UnanimousStrategy is a StrategyInterface implementation where 100% of elements should be successful. | ||||
UnapprovedComments | class | Drupal\comment\Plugin\Menu\LocalTask | core/ |
Provides a local task that shows the amount of unapproved comments. | 1 | |||
UnaryExpression | class | Peast\Syntax\Node | vendor/ |
A node that represents a unary expression. For example: !a | ||||
UnaryMinus | class | PhpParser\Node\Expr | vendor/ |
|||||
UnaryOperator | abstract class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
UnaryPlus | class | PhpParser\Node\Expr | vendor/ |
|||||
UnauthorizedHttpException | class | Symfony\Component\HttpKernel\Exception | vendor/ |
@author Ben Ramsey <ben@benramsey.com> | 1 | 2 | ||
UnblockUser | class | Drupal\user\Plugin\Action | core/ |
Unblocks a user. | ||||
UncacheableDependencyTrait | trait | Drupal\Core\Cache | core/ |
Trait to implement CacheableDependencyInterface for uncacheable objects. | 2 | |||
UncacheableFieldHandlerTrait | trait | Drupal\views\Plugin\views\field | core/ |
Trait encapsulating the logic for uncacheable field handlers. | ||||
UncaughtThrowable | final class | Revolt\EventLoop | vendor/ |
1 | ||||
UnchangingCacheableDependencyTrait | trait | Drupal\Core\Cache | core/ |
Trait to implement CacheableDependencyInterface for unchanging objects. | 4 | |||
UnclosedComment | class | Egulias\EmailValidator\Result\Reason | vendor/ |
1 | ||||
UnclosedQuotedString | class | Egulias\EmailValidator\Result\Reason | vendor/ |
1 | ||||
UnconditionalIfStatementSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis | vendor/ |
|||||
Undefined | class | Drupal\Core\Config\Schema | core/ |
Undefined configuration element. | 2 | 1 | ||
Undefined | class | Seld\JsonLint | vendor/ |
|||||
UndefinedConstraint | class | JsonSchema\Constraints | vendor/ |
The UndefinedConstraint Constraints | ||||
UndefinedExtensionHandler | class | Symfony\Component\DependencyInjection\Loader | vendor/ |
1 | ||||
UndefinedFunctionError | class | Symfony\Component\ErrorHandler\Error | vendor/ |
1 | ||||
UndefinedFunctionErrorEnhancer | class | Symfony\Component\ErrorHandler\ErrorEnhancer | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | |||
UndefinedLinkTemplateException | class | Drupal\Core\Entity\Exception | core/ |
Defines an exception class for undefined link templates. | 3 | |||
UndefinedMethodError | class | Symfony\Component\ErrorHandler\Error | vendor/ |
1 | ||||
UndefinedMethodErrorEnhancer | class | Symfony\Component\ErrorHandler\ErrorEnhancer | vendor/ |
@author Grégoire Pineau <lyrixx@lyrixx.info> | 1 | |||
Unescaper | class | Symfony\Component\Yaml | vendor/ |
Unescaper encapsulates unescaping rules for single and double-quoted YAML strings. | ||||
UnexpectedAlertOpen | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\UnexpectedAlertOpen class | ||||
UnexpectedCallException | class | Prophecy\Exception\Call | vendor/ |
1 | ||||
UnexpectedCallsCountException | class | Prophecy\Exception\Prediction | vendor/ |
1 | ||||
UnexpectedCallsException | class | Prophecy\Exception\Prediction | vendor/ |
1 | 1 | |||
UnexpectedNullMatchException | class | Composer\Pcre | vendor/ |