Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core

Primary tabs

  • Drupal 11.1.x

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

Pagination

  • First page
  • Previous page
  • …
  • Page 124
  • Page 125
  • Page 126
  • Page 127
  • Page 128
  • Page 129
  • Page 130
  • Page 131
  • Page 132
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal