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 |
---|---|---|---|---|---|---|---|---|
NodeVisitorAbstract | abstract class | PhpParser | vendor/ |
@codeCoverageIgnore | 13 | 13 | ||
NodeVisitorInterface | interface | Twig\NodeVisitor | vendor/ |
Interface for node visitor classes. | 11 | 10 | ||
NoDNSMXRecord | class | Egulias\EmailValidator\Warning | vendor/ |
1 | ||||
NoDNSRecord | class | Egulias\EmailValidator\Result\Reason | vendor/ |
1 | 1 | |||
NoDomainPart | class | Egulias\EmailValidator\Result\Reason | vendor/ |
1 | ||||
NoEmailAddressException | class | PharIo\Manifest | vendor/ |
|||||
NoFieldsException | class | Drupal\Core\Database\Query | core/ |
Exception thrown if an insert query doesn't specify insert or default fields. | ||||
NoFileException | class | Symfony\Component\HttpFoundation\File\Exception | vendor/ |
Thrown when an UPLOAD_ERR_NO_FILE error occurred with UploadedFile. | 4 | |||
NoHardLinksExist | final class | PhpTuf\ComposerStager\Internal\Precondition\Service | vendor/ |
@package Precondition | 2 | |||
NoHardLinksExistInterface | interface | PhpTuf\ComposerStager\API\Precondition\Service | vendor/ |
Asserts that there are no hard links in the codebase. | 1 | 2 | ||
NoLinksExistOnWindows | final class | PhpTuf\ComposerStager\Internal\Precondition\Service | vendor/ |
@package Precondition | 2 | |||
NoLinksExistOnWindowsInterface | interface | PhpTuf\ComposerStager\API\Precondition\Service | vendor/ |
Asserts that there are no links at all if on Windows. | 1 | 2 | ||
NoLocalPart | class | Egulias\EmailValidator\Result\Reason | vendor/ |
2 | ||||
NoLock | final class | Symfony\Component\Lock | vendor/ |
A non locking lock. | ||||
NoMissingSpaceInClassAnnotationRule | class | PHPStan\Rules\PHPUnit | vendor/ |
@implements Rule<InClassNode> | ||||
NoMissingSpaceInMethodAnnotationRule | class | PHPStan\Rules\PHPUnit | vendor/ |
@implements Rule<InClassMethodNode> | ||||
NoMoreReturnValuesConfiguredException | final class | PHPUnit\Framework\MockObject | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
None | class | Drupal\views\Plugin\views\pager | core/ |
Plugin for views without pagers. | ||||
None | class | Drupal\views\Plugin\views\cache | core/ |
Caching plugin that provides no caching at all. | ||||
None | class | Drupal\views\Plugin\views\access | core/ |
Access plugin that provides no access control at all. | ||||
None | class | Drupal\views\Plugin\views\argument_validator | core/ |
Do not validate the argument. | ||||
NoneExemplarFilter | final class | OpenTelemetry\SDK\Metrics\Exemplar\ExemplarFilter | vendor/ |
The exemplar spec is not yet stable, and can change at any time. see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#exemplar | 1 | |||
NonEmptyArray | final class | phpDocumentor\Reflection\PseudoTypes | vendor/ |
Value Object representing the type 'non-empty-array'. | 1 | |||
NonEmptyList | final class | phpDocumentor\Reflection\PseudoTypes | vendor/ |
Value Object representing the type 'non-empty-list'. | 1 | |||
NonEmptyLowercaseString | final class | phpDocumentor\Reflection\PseudoTypes | vendor/ |
Value Object representing the type 'string'. | 1 | |||
NonEmptyString | final class | phpDocumentor\Reflection\PseudoTypes | vendor/ |
Value Object representing the type 'string'. | 1 | |||
NoNestingOnWindows | final class | PhpTuf\ComposerStager\Internal\Precondition\Service | vendor/ |
@package Precondition | 2 | |||
NoNestingOnWindowsInterface | interface | PhpTuf\ComposerStager\API\Precondition\Service | vendor/ |
Asserts that the active and staging directories are not nested on Windows. | 1 | 2 | ||
NonExecutableCodeSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP | vendor/ |
|||||
NonRecordingSpan | final class | OpenTelemetry\API\Trace | vendor/ |
@psalm-internal OpenTelemetry | ||||
NoopConfigProperties | class | OpenTelemetry\API\Configuration\Noop | vendor/ |
1 | ||||
NoopConfigProvider | class | OpenTelemetry\API\Configuration\Noop | vendor/ |
|||||
NoopCounter | final class | OpenTelemetry\API\Metrics\Noop | vendor/ |
@internal | ||||
NoopEventLogger | class | OpenTelemetry\API\Logs | vendor/ |
|||||
NoopEventLoggerProvider | class | OpenTelemetry\API\Logs | vendor/ |
2 | ||||
NoopEventLoggerProvider | class | OpenTelemetry\SDK\Logs | vendor/ |
|||||
NoopExporter | class | OpenTelemetry\SDK\Logs\Exporter | vendor/ |
1 | ||||
NoopGauge | final class | OpenTelemetry\API\Metrics\Noop | vendor/ |
@internal | ||||
NoopHistogram | final class | OpenTelemetry\API\Metrics\Noop | vendor/ |
@internal | ||||
NoopHookManager | final class | OpenTelemetry\API\Instrumentation\AutoInstrumentation | vendor/ |
1 | ||||
NoopInstaller | class | Composer\Installer | vendor/ |
Does not install anything but marks packages installed in the repo | ||||
NoopLogger | class | OpenTelemetry\API\Logs | vendor/ |
2 | ||||
NoopLoggerProvider | class | OpenTelemetry\API\Logs | vendor/ |
2 | ||||
NoopLoggerProvider | class | OpenTelemetry\SDK\Logs | vendor/ |
1 | ||||
NoopLogRecordProcessor | class | OpenTelemetry\SDK\Logs\Processor | vendor/ |
2 | ||||
NoopLogWriter | class | OpenTelemetry\API\Behavior\Internal\LogWriter | vendor/ |
2 | ||||
NoopMeter | final class | OpenTelemetry\API\Metrics\Noop | vendor/ |
3 | ||||
NoopMeterProvider | final class | OpenTelemetry\API\Metrics\Noop | vendor/ |
2 | ||||
NoopMeterProvider | class | OpenTelemetry\SDK\Metrics | vendor/ |
2 | ||||
NoopMetricExporter | class | OpenTelemetry\SDK\Metrics\MetricExporter | vendor/ |
1 |