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 |
---|---|---|---|---|---|---|---|---|
NegativeOrZero | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is a negative number or equal to zero. | ||||
NegativeValueException | final class | SebastianBergmann\LinesOfCode | vendor/ |
|||||
NegotiationBrowserDeleteForm | class | Drupal\language\Form | core/ |
Defines a confirmation form for deleting a browser language negotiation mapping. | 1 | |||
NegotiationBrowserForm | class | Drupal\language\Form | core/ |
Configure the browser language negotiation method for this site. | 1 | |||
NegotiationConfigureForm | class | Drupal\language\Form | core/ |
Configure the selected language negotiation method for this site. | 1 | |||
NegotiationMiddleware | class | Drupal\Core\StackMiddleware | core/ |
Provides a middleware to determine the content type upon the accept header. | 2 | |||
NegotiationSelectedForm | class | Drupal\language\Form | core/ |
Configure the selected language negotiation method for this site. | 1 | |||
NegotiationSessionForm | class | Drupal\language\Form | core/ |
Configure the session language negotiation method for this site. | 1 | |||
NegotiationUrlForm | class | Drupal\language\Form | core/ |
Configure the URL language negotiation method for this site. | 1 | |||
NegotiatorBase | abstract class | Drupal\jsonapi\Revisions | core/ |
Base implementation for version negotiators. | 2 | |||
NegUnary | class | Twig\Node\Expression\Unary | vendor/ |
3 | ||||
NestedArray | class | Drupal\Component\Utility | core/ |
Provides helpers to perform operations on nested arrays and array keys of variable depth. | 87 | |||
NestingLevelSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics | vendor/ |
|||||
NetworkException | class | Http\Client\Exception | vendor/ |
Thrown when the request cannot be completed because of network issues. | ||||
NetworkExceptionInterface | interface | Psr\Http\Client | vendor/ |
Thrown when the request cannot be completed because of network issues. | 2 | 3 | ||
NeverReturningMethodException | final class | PHPUnit\Framework\MockObject | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
NeverType | final class | SebastianBergmann\Type | vendor/ |
|||||
Never_ | final class | phpDocumentor\Reflection\Types | vendor/ |
Value Object representing the return-type 'never'. | 1 | |||
NewExpression | class | Peast\Syntax\Node | vendor/ |
A node that represents a "new" expression. For example: new test() | ||||
NewWithoutParenthesesSniff | class | SlevomatCodingStandard\Sniffs\ControlStructures | vendor/ |
|||||
NewWithParenthesesSniff | class | SlevomatCodingStandard\Sniffs\ControlStructures | vendor/ |
|||||
New_ | class | PhpParser\Node\Expr | vendor/ |
2 | ||||
Nid | class | Drupal\node\Plugin\views\argument | core/ |
Argument handler to accept a node id. | ||||
NilTrait | trait | Ramsey\Uuid\Rfc4122 | vendor/ |
Provides common functionality for nil UUIDs | 1 | |||
NilUuid | final class | Ramsey\Uuid\Rfc4122 | vendor/ |
The nil UUID is special form of UUID that is specified to have all 128 bits set to zero | ||||
NoAbsoluteSymlinksExist | final class | PhpTuf\ComposerStager\Internal\Precondition\Service | vendor/ |
@package Precondition | 2 | |||
NoAbsoluteSymlinksExistInterface | interface | PhpTuf\ComposerStager\API\Precondition\Service | vendor/ |
Asserts that there are no absolute symlinks in the codebase. | 1 | 2 | ||
NoActiveTimerException | final class | SebastianBergmann\Timer | vendor/ |
2 | ||||
NoAlertOpenError | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\NoAlertOpenError class | ||||
NoBaselineException | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
NoBigPipeRouteAlterSubscriber | class | Drupal\big_pipe\EventSubscriber | core/ |
Sets the '_no_big_pipe' option on select routes. | 2 | |||
NoBootstrapException | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
NoBuildMetaDataException | class | PharIo\Version | vendor/ |
|||||
NoCacheDirectoryException | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
NoCallsException | class | Prophecy\Exception\Prediction | vendor/ |
1 | ||||
NoCallsPrediction | class | Prophecy\Prediction | vendor/ |
Tests that there were no calls made. | ||||
NoCandidateFoundException | final class | Http\Discovery\Exception | vendor/ |
When we have used a strategy but no candidates provided by that strategy could be used. | 1 | |||
NoCheckpointsException | final class | Drupal\Core\Config\Checkpoint | core/ |
Thrown when using the checkpoint storage with no checkpoints. | ||||
NoChildTestSuiteException | final class | PHPUnit\Framework | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
NoCliArgumentException | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
NoCodeCoverageDriverAvailableException | final class | SebastianBergmann\CodeCoverage | vendor/ |
1 | ||||
NoCodeCoverageDriverWithPathCoverageSupportAvailableException | final class | SebastianBergmann\CodeCoverage | vendor/ |
1 | ||||
NoComparisonFailureException | final class | PHPUnit\Event\Test | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
NoConfigurationException | class | Symfony\Component\Routing\Exception | vendor/ |
Exception thrown when no routes are configured. | 5 | |||
NoConfigurationFileException | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
NoCorrespondingEntityClassException | class | Drupal\Core\Entity\Exception | core/ |
Exception thrown if an entity type is not represented by a class. | 1 | |||
NoCoverageCacheDirectoryException | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
NoCustomCssFileException | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
NoDataSetFromDataProviderException | final class | PHPUnit\Event\TestData | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
Node | class | Drupal\node\Plugin\views\field | core/ |
Field handler to provide simple renderer that allows linking to a node. | 1 | 1 |