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
NoSuspiciousCharacters class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/NoSuspiciousCharacters.php Validates that the given string does not contain characters used in spoofing security attacks.
NoSuspiciousCharactersValidator class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/NoSuspiciousCharactersValidator.php @author Mathieu Lechat <math.lechat@gmail.com>
NoSymlinksPointOutsideTheCodebase final class PhpTuf\ComposerStager\Internal\Precondition\Service vendor/php-tuf/composer-stager/src/Internal/Precondition/Service/NoSymlinksPointOutsideTheCodebase.php @package Precondition 2
NoSymlinksPointOutsideTheCodebaseInterface interface PhpTuf\ComposerStager\API\Precondition\Service vendor/php-tuf/composer-stager/src/API/Precondition/Service/NoSymlinksPointOutsideTheCodebaseInterface.php Asserts that there are no symlinks that point outside the codebase. 1 2
NotAcceptableHttpException class Symfony\Component\HttpKernel\Exception vendor/symfony/http-kernel/Exception/NotAcceptableHttpException.php @author Ben Ramsey <ben@benramsey.com> 1 5
NotBlank class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/NotBlank.php Validates that a value is not blank. 5
NotBlankValidator class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/NotBlankValidator.php @author Bernhard Schussek <bschussek@gmail.com> @author Kévin Dunglas <dunglas@gmail.com>
NotCompromisedPassword class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/NotCompromisedPassword.php Checks if a password has been leaked in a data breach.
NotCompromisedPasswordValidator class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/NotCompromisedPasswordValidator.php Checks if a password has been leaked in a data breach using haveibeenpwned.com's API. Use a k-anonymity model to protect the password being searched for.
NotEncodableValueException class Symfony\Component\Serializer\Exception vendor/symfony/serializer/Exception/NotEncodableValueException.php @author Christian Flothmann <christian.flothmann@sensiolabs.de> 1 5
NotEqual class PhpParser\Node\Expr\BinaryOp vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/NotEqual.php
NotEqualBinary class Twig\Node\Expression\Binary vendor/twig/twig/src/Node/Expression/Binary/NotEqualBinary.php 1
NotEqualTo class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/NotEqualTo.php Validates that a value is not equal to another value.
NotEqualToValidator class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/NotEqualToValidator.php Validates values are all unequal (!=).
NoTestCaseObjectOnCallStackException final class PHPUnit\Event\Code vendor/phpunit/phpunit/src/Event/Exception/NoTestCaseObjectOnCallStackException.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1
NotFoundException class Http\Discovery\Exception vendor/php-http/discovery/src/Exception/NotFoundException.php 1 5
NotFoundException

since since version 1.0, and will be removed in 2.0. Use {@link \Http\Discovery\Exception\NotFoundException} instead.

final class Http\Discovery vendor/php-http/discovery/src/NotFoundException.php Thrown when a discovery does not find any matches.
NotFoundExceptionInterface interface Psr\Container vendor/psr/container/src/NotFoundExceptionInterface.php No entry was found in the container. 3 6
NotFoundHttpException class Symfony\Component\HttpKernel\Exception vendor/symfony/http-kernel/Exception/NotFoundHttpException.php @author Fabien Potencier <fabien@symfony.com> 1 50
Notice final class PHPUnit\Framework\TestStatus vendor/phpunit/phpunit/src/Framework/TestStatus/Notice.php @psalm-immutable
NoticeTriggered final class PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/Issue/NoticeTriggered.php @psalm-immutable 9
NoticeTriggeredSubscriber interface PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/Issue/NoticeTriggeredSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 4 4
NotIdentical class PhpParser\Node\Expr\BinaryOp vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/NotIdentical.php
NotIdenticalTo class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/NotIdenticalTo.php Validates that a value is not identical to another value. 1
NotIdenticalToValidator class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/NotIdenticalToValidator.php Validates values aren't identical (!==).
Notifysend class PHP_CodeSniffer\Reports vendor/squizlabs/php_codesniffer/src/Reports/Notifysend.php
NotInArrayToken class Prophecy\Argument\Token vendor/phpspec/prophecy/src/Prophecy/Argument/Token/NotInArrayToken.php Check if values is not in array
NotInBinary class Twig\Node\Expression\Binary vendor/twig/twig/src/Node/Expression/Binary/NotInBinary.php 1
NotInstantiableTypeException class Symfony\Component\VarExporter\Exception vendor/symfony/var-exporter/Exception/NotInstantiableTypeException.php 3
NoTmpDirFileException class Symfony\Component\HttpFoundation\File\Exception vendor/symfony/http-foundation/File/Exception/NoTmpDirFileException.php Thrown when an UPLOAD_ERR_NO_TMP_DIR error occurred with UploadedFile. 1
NotNormalizableValueException class Symfony\Component\Serializer\Exception vendor/symfony/serializer/Exception/NotNormalizableValueException.php @author Christian Flothmann <christian.flothmann@sensiolabs.de> 11
NotNull class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/NotNull.php Validates that a value is not strictly equal to null. 1 3
NotNullConstraint class Drupal\Core\Validation\Plugin\Validation\Constraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/NotNullConstraint.php NotNull constraint. 1
NotNullConstraintValidator class Drupal\Core\Validation\Plugin\Validation\Constraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/NotNullConstraintValidator.php NotNull constraint validator.
NotNullValidator class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/NotNullValidator.php @author Bernhard Schussek <bschussek@gmail.com> 1 1
NoTraitException final class SebastianBergmann\CodeUnit vendor/sebastian/code-unit/src/exceptions/NoTraitException.php
NotRegularDirectoryException class Drupal\Core\File\Exception core/lib/Drupal/Core/File/Exception/NotRegularDirectoryException.php Exception thrown when a target is not a regular directory (e.g. a file). 1
NotRegularFileException class Drupal\Core\File\Exception core/lib/Drupal/Core/File/Exception/NotRegularFileException.php Exception thrown when a target is not a regular file (e.g. a directory). 1
NotTaggedControllerValueResolver final class Symfony\Component\HttpKernel\Controller\ArgumentResolver vendor/symfony/http-kernel/Controller/ArgumentResolver/NotTaggedControllerValueResolver.php Provides an intuitive error message when controller fails because it is not registered as a service.
NotUnary class Twig\Node\Expression\Unary vendor/twig/twig/src/Node/Expression/Unary/NotUnary.php 3
NoUniqueFieldException class Drupal\Core\Database\Query core/lib/Drupal/Core/Database/Query/NoUniqueFieldException.php Exception thrown if an upsert query doesn't specify a unique field.
NoUnsupportedLinksExist final class PhpTuf\ComposerStager\Internal\Precondition\Service vendor/php-tuf/composer-stager/src/Internal/Precondition/Service/NoUnsupportedLinksExist.php @package Precondition 2
NoUnsupportedLinksExistInterface interface PhpTuf\ComposerStager\API\Precondition\Service vendor/php-tuf/composer-stager/src/API/Precondition/Service/NoUnsupportedLinksExistInterface.php Asserts that there are no unsupported links in the codebase. 1 4
NoVersionRequirementException final class PHPUnit\Metadata vendor/phpunit/phpunit/src/Metadata/Exception/NoVersionRequirementException.php
Nullable final class phpDocumentor\Reflection\Types vendor/phpdocumentor/type-resolver/src/Types/Nullable.php Value Object representing a nullable type. The real type is wrapped. 1
NullableType class PhpParser\Node vendor/nikic/php-parser/lib/PhpParser/Node/NullableType.php 2
NullableTypeDeclarationSniff class PHP_CodeSniffer\Standards\PSR12\Sniffs\Functions vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Functions/NullableTypeDeclarationSniff.php
NullableTypeForNullDefaultValueSniff class SlevomatCodingStandard\Sniffs\TypeHints vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/TypeHints/NullableTypeForNullDefaultValueSniff.php
NullableTypeNode class PHPStan\PhpDocParser\Ast\Type vendor/phpstan/phpdoc-parser/src/Ast/Type/NullableTypeNode.php 6
NullArgument class Drupal\views\Plugin\views\argument core/modules/views/src/Plugin/views/argument/NullArgument.php Argument handler that ignores the argument.

Pagination

  • First page
  • Previous page
  • …
  • Page 129
  • Page 130
  • Page 131
  • Page 132
  • Page 133
  • Page 134
  • Page 135
  • Page 136
  • Page 137
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal