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 |
---|---|---|---|---|---|---|---|---|
NullBackend | class | Drupal\Core\Cache | core/ |
Defines a stub cache implementation. | 1 | 4 | ||
NullBackendFactory | class | Drupal\Core\Cache | core/ |
1 | 4 | |||
NullCache | final class | Twig\Cache | vendor/ |
Implements a no-cache strategy. | 1 | |||
NullCancellation | final class | OpenTelemetry\SDK\Common\Future | vendor/ |
|||||
NullCoalesce | class | Drupal\migrate\Plugin\migrate\process | core/ |
Provides a Null Coalesce process plugin. | ||||
NullCoalesceExpression | class | Twig\Node\Expression | vendor/ |
1 | ||||
NullDestination | class | Drupal\migrate\Plugin\migrate\destination | core/ |
Provides null destination plugin. | ||||
NullDumper | class | Symfony\Component\DependencyInjection\LazyProxy\PhpDumper | vendor/ |
Null dumper, negates any proxy code generation for any given service definition. | 1 | |||
NullFileCache | class | Drupal\Component\FileCache | core/ |
Null implementation for the file cache. | ||||
NullGenerator | class | Drupal\Core\Routing | core/ |
No-op implementation of a URL Generator, needed for backward compatibility. | ||||
NullIdMap | class | Drupal\migrate\Plugin\migrate\id_map | core/ |
Defines the null ID map implementation. | ||||
NullIncludedData | class | Drupal\jsonapi\JsonApiResource | core/ |
Use when there are no included resources but a Data object is required. | 5 | |||
NullIO | class | Composer\IO | vendor/ |
IOInterface that is not interactive and never writes the output | 7 | |||
NullLiteral | class | Peast\Syntax\Node | vendor/ |
A node that represents a null literal. | ||||
NullLockBackend | class | Drupal\Core\Lock | core/ |
Defines a Null lock backend. | 1 | |||
NullLogger | class | Psr\Log | vendor/ |
This Logger can be used to avoid conditional log calls. | 9 | |||
NullMatcherDumper | class | Drupal\Core\Routing | core/ |
Does not dump Route information. | ||||
NullNormalizer | class | Drupal\serialization\Normalizer | core/ |
Null normalizer. | 2 | |||
NullOutput | class | Symfony\Component\Console\Output | vendor/ |
NullOutput suppresses all output. | ||||
NullOutputFormatter | final class | Symfony\Component\Console\Formatter | vendor/ |
@author Tien Xuan Vo <tien.xuan.vo@gmail.com> | 1 | |||
NullOutputFormatterStyle | final class | Symfony\Component\Console\Formatter | vendor/ |
@author Tien Xuan Vo <tien.xuan.vo@gmail.com> | ||||
NullPathProcessorManager | class | Drupal\Core\PathProcessor | core/ |
Provides a null implementation of the path processor manager. | ||||
NullPrinter | final class | PHPUnit\TextUI\Output | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
NullResultCache | final class | PHPUnit\Runner\ResultCache | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
NullRouteMatch | class | Drupal\Core\Routing | core/ |
Stub implementation of RouteMatchInterface for when there's no matched route. | ||||
NullsafeMethodCall | class | PhpParser\Node\Expr | vendor/ |
|||||
NullsafePropertyFetch | class | PhpParser\Node\Expr | vendor/ |
|||||
NullsafeTokenEmulator | final class | PhpParser\Lexer\TokenEmulator | vendor/ |
1 | ||||
NullSessionHandler | class | Symfony\Component\HttpFoundation\Session\Storage\Handler | vendor/ |
Can be used in unit testing or in a situations where persisted sessions are not desired. | ||||
NullSpanConverter | class | OpenTelemetry\SDK\Trace\SpanExporter | vendor/ |
1 | ||||
NullStorage | class | Drupal\Core\Config | core/ |
Defines a stub storage. | 3 | |||
NullStorageExpirable | class | Drupal\Core\KeyValueStore | core/ |
Defines a null key/value store implementation. | ||||
NullStore | class | Symfony\Component\Lock\Store | vendor/ |
|||||
NullTest | class | Twig\Node\Expression\Test | vendor/ |
Checks that a variable is null. | 2 | |||
NullTransport | final class | Symfony\Component\Mailer\Transport | vendor/ |
Pretends messages have been sent, but just ignores them. | ||||
NullTransportFactory | final class | Symfony\Component\Mailer\Transport | vendor/ |
@author Konstantin Myakshin <molodchick@gmail.com> | 1 | |||
NullType | final class | SebastianBergmann\Type | vendor/ |
|||||
NullTypeHintOnLastPositionSniff | class | SlevomatCodingStandard\Sniffs\TypeHints | vendor/ |
|||||
NullValue | class | Google\Protobuf | vendor/ |
`NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`. | 1 | |||
Null_ | final class | phpDocumentor\Reflection\Types | vendor/ |
Value Object representing a null value or type. | 1 | |||
Number | class | Drupal\Core\Render\Element | core/ |
Provides a form element for numeric input, with special numeric validation. | 1 | |||
Number | class | Drupal\Component\Utility | core/ |
Provides helper methods for manipulating numbers. | 2 | |||
NumberComparator | class | Symfony\Component\Finder\Comparator | vendor/ |
NumberComparator compiles a simple comparison to an anonymous subroutine, which you can call with a value to be tested again. | 2 | |||
NumberConstraint | class | JsonSchema\Constraints | vendor/ |
The NumberConstraint Constraints, validates an number against a given schema | ||||
NumberConverterInterface | interface | Ramsey\Uuid\Converter | vendor/ |
A number converter converts UUIDs from hexadecimal characters into representations of integers and vice versa | 2 | 24 | ||
NumberDataPoint | final class | OpenTelemetry\SDK\Metrics\Data | vendor/ |
|||||
NumberDataPoint | class | Opentelemetry\Proto\Metrics\V1 | vendor/ |
NumberDataPoint is a single data point in a timeseries that describes the time-varying scalar value of a metric. | 1 | |||
NumberField | class | Drupal\field\Plugin\migrate\field\d7 | core/ |
MigrateField plugin for Drupal 7 number fields. | ||||
NumberFormatException | class | Brick\Math\Exception | vendor/ |
Exception thrown when attempting to create a number from a string with an invalid format. | 3 | |||
NumberHandler | class | Symfony\Component\CssSelector\Parser\Handler | vendor/ |
CSS selector comment handler. |