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 |
---|---|---|---|---|---|---|---|---|
UnknownExtensionTypeException | class | Drupal\Core\Extension\Exception | core/ |
Exception thrown when a specified extension type is not known. | 1 | |||
UnknownLocatorStrategy | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\UnknownLocatorStrategy class | ||||
UnknownMethod | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\UnknownMethod class | ||||
UnknownOptionException | final class | SebastianBergmann\CliParser | vendor/ |
|||||
UnknownPathExcluder | final class | Drupal\package_manager\PathExcluder | core/ |
Excludes unknown paths from stage operations. | ||||
UnknownRecipeException | final class | Drupal\Core\Recipe | core/ |
Exception thrown when recipe is can not be found. | ||||
UnknownSubscriberException | final class | PHPUnit\Event | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
UnknownSubscriberTypeException | final class | PHPUnit\Event | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 13 | |||
UnknownTraitException | https://github.com/sebastianbergmann/phpunit/issues/5243 |
final class | PHPUnit\Framework\MockObject\Generator | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | |||
UnknownType | final class | SebastianBergmann\Type | vendor/ |
1 | ||||
UnknownTypeException | final class | PHPUnit\Framework\MockObject\Generator | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
UnknownTypeException | final class | PHPUnit\Framework | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
UnmetDependenciesException | class | Drupal\Core\Config | core/ |
An exception thrown if configuration has unmet dependencies. | 4 | |||
UnnecessaryFinalModifierSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis | vendor/ |
|||||
UnnecessaryHeredocSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\Strings | vendor/ |
|||||
UnnecessaryStringConcatSniff | class | Drupal\Sniffs\Strings | vendor/ |
Checks that two strings are not concatenated together; suggests using one string instead. | ||||
UnnecessaryStringConcatSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\Strings | vendor/ |
1 | 1 | |||
UnOpenedComment | class | Egulias\EmailValidator\Result\Reason | vendor/ |
1 | ||||
UnprocessableEntityHttpException | class | Symfony\Component\HttpKernel\Exception | vendor/ |
@author Steve Hutchins <hutchinsteve@gmail.com> | 1 | 10 | ||
UnprocessableHttpEntityException | class | Drupal\jsonapi\Exception | core/ |
A class to represent a 422 - Unprocessable Entity Exception. | 2 | |||
UnprocessableHttpEntityExceptionNormalizer | class | Drupal\jsonapi\Normalizer | core/ |
Normalizes and UnprocessableHttpEntityException. | 2 | |||
UnpublishAction | class | Drupal\Core\Action\Plugin\Action | core/ |
Unpublishes an entity. | 1 | 2 | ||
UnresolvableJsonPointerException | class | JsonSchema\Exception | vendor/ |
@package JsonSchema\Exception | 1 | |||
UnroutedUrlAssembler | class | Drupal\Core\Utility | core/ |
Provides a way to build external or non Drupal local domain URLs. | ||||
UnroutedUrlAssemblerInterface | interface | Drupal\Core\Utility | core/ |
Provides a way to build external or non Drupal local domain URLs. | 1 | 3 | ||
UnsafeStrictGroupsCallRule | final class | Composer\Pcre\PHPStan | vendor/ |
@implements Rule<StaticCall> | ||||
UnserializableKeyException | class | Symfony\Component\Lock\Exception | vendor/ |
UnserializableKeyException is thrown when the key contains state that can no be serialized and the user try to serialize it. ie. Connection with a database, flock, semaphore, ... | 1 | |||
Unset_ | class | PhpParser\Node\Expr\Cast | vendor/ |
|||||
Unset_ | class | PhpParser\Node\Stmt | vendor/ |
|||||
UnsilencedDeprecationSniff | class | Drupal\Sniffs\Semantics | vendor/ |
Checks that the trigger_error deprecation is silenced by a preceding '@'. | ||||
UnstickyNode | class | Drupal\node\Plugin\Action | core/ |
Makes a node not sticky. | ||||
UnstructuredHeader | class | Symfony\Component\Mime\Header | vendor/ |
A Simple MIME Header. | 3 | 6 | ||
UnsupportedClassGroupException | class | SlevomatCodingStandard\Sniffs\Classes | vendor/ |
|||||
UnsupportedDataTypeConfigException | class | Drupal\Core\Config | core/ |
Exception thrown when a config data type is invalid. | ||||
UnsupportedDriverActionException | class | Behat\Mink\Exception | vendor/ |
Exception thrown by drivers when they don't support the requested action. | 3 | |||
UnsupportedEntityTypeDefinitionException | class | Drupal\Core\Entity\Exception | core/ |
Defines an exception thrown when an entity type definition is invalid. | 4 | |||
UnsupportedException | class | Symfony\Component\Serializer\Exception | vendor/ |
UnsupportedException. | 1 | |||
UnsupportedFeatureException | final class | Revolt\EventLoop | vendor/ |
MUST be thrown if a feature is not supported by the system. | 2 | |||
UnsupportedFormatException | class | Symfony\Component\Serializer\Exception | vendor/ |
@author Konstantin Myakshin <molodchick@gmail.com> | 2 | |||
UnsupportedKeywordException | class | SlevomatCodingStandard\Sniffs\ControlStructures | vendor/ |
|||||
UnsupportedMediaTypeHttpException | class | Symfony\Component\HttpKernel\Exception | vendor/ |
@author Ben Ramsey <ben@benramsey.com> | 1 | 3 | ||
UnsupportedMetadataException | class | Symfony\Component\Validator\Exception | vendor/ |
@author Bernhard Schussek <bschussek@gmail.com> | 1 | |||
UnsupportedOperation | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\UnsupportedOperation class | ||||
UnsupportedOperationException | class | Ramsey\Uuid\Exception | vendor/ |
Thrown to indicate that the requested operation is not supported | 6 | |||
UnsupportedOperationException | class | Ramsey\Collection\Exception | vendor/ |
Thrown to indicate that the requested operation is not supported. | 3 | |||
UnsupportedPhptSectionException | final class | PHPUnit\Runner | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
UnsupportedSchemeException | class | Symfony\Component\Mailer\Exception | vendor/ |
@author Konstantin Myakshin <molodchick@gmail.com> | 7 | |||
UnsupportedVersionConstraintException | final class | PharIo\Version | vendor/ |
1 | ||||
UntrustedCallbackException | class | Drupal\Core\Security | core/ |
Exception thrown if a callback is untrusted. | ||||
UnusedFunctionParameterSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis | vendor/ |