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 |
---|---|---|---|---|---|---|---|---|
NoSuspiciousCharacters | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that the given string does not contain characters used in spoofing security attacks. | ||||
NoSuspiciousCharactersValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Mathieu Lechat <math.lechat@gmail.com> | ||||
NoSymlinksPointOutsideTheCodebase | final class | PhpTuf\ComposerStager\Internal\Precondition\Service | vendor/ |
@package Precondition | 2 | |||
NoSymlinksPointOutsideTheCodebaseInterface | interface | PhpTuf\ComposerStager\API\Precondition\Service | vendor/ |
Asserts that there are no symlinks that point outside the codebase. | 1 | 2 | ||
NotAcceptableHttpException | class | Symfony\Component\HttpKernel\Exception | vendor/ |
@author Ben Ramsey <ben@benramsey.com> | 1 | 5 | ||
NotBlank | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is not blank. | 5 | |||
NotBlankValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Bernhard Schussek <bschussek@gmail.com> @author Kévin Dunglas <dunglas@gmail.com> | ||||
NotCompromisedPassword | class | Symfony\Component\Validator\Constraints | vendor/ |
Checks if a password has been leaked in a data breach. | ||||
NotCompromisedPasswordValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
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/ |
@author Christian Flothmann <christian.flothmann@sensiolabs.de> | 1 | 5 | ||
NotEqual | class | PhpParser\Node\Expr\BinaryOp | vendor/ |
|||||
NotEqualBinary | class | Twig\Node\Expression\Binary | vendor/ |
1 | ||||
NotEqualTo | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is not equal to another value. | ||||
NotEqualToValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates values are all unequal (!=). | ||||
NoTestCaseObjectOnCallStackException | final class | PHPUnit\Event\Code | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
NotFoundException | class | Http\Discovery\Exception | vendor/ |
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/ |
Thrown when a discovery does not find any matches. | |||
NotFoundExceptionInterface | interface | Psr\Container | vendor/ |
No entry was found in the container. | 3 | 6 | ||
NotFoundHttpException | class | Symfony\Component\HttpKernel\Exception | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | 50 | ||
Notice | final class | PHPUnit\Framework\TestStatus | vendor/ |
@psalm-immutable | ||||
NoticeTriggered | final class | PHPUnit\Event\Test | vendor/ |
@psalm-immutable | 9 | |||
NoticeTriggeredSubscriber | interface | PHPUnit\Event\Test | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 4 | 4 | ||
NotIdentical | class | PhpParser\Node\Expr\BinaryOp | vendor/ |
|||||
NotIdenticalTo | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is not identical to another value. | 1 | |||
NotIdenticalToValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates values aren't identical (!==). | ||||
Notifysend | class | PHP_CodeSniffer\Reports | vendor/ |
|||||
NotInArrayToken | class | Prophecy\Argument\Token | vendor/ |
Check if values is not in array | ||||
NotInBinary | class | Twig\Node\Expression\Binary | vendor/ |
1 | ||||
NotInstantiableTypeException | class | Symfony\Component\VarExporter\Exception | vendor/ |
3 | ||||
NoTmpDirFileException | class | Symfony\Component\HttpFoundation\File\Exception | vendor/ |
Thrown when an UPLOAD_ERR_NO_TMP_DIR error occurred with UploadedFile. | 1 | |||
NotNormalizableValueException | class | Symfony\Component\Serializer\Exception | vendor/ |
@author Christian Flothmann <christian.flothmann@sensiolabs.de> | 11 | |||
NotNull | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is not strictly equal to null. | 1 | 3 | ||
NotNullConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
NotNull constraint. | 1 | |||
NotNullConstraintValidator | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
NotNull constraint validator. | ||||
NotNullValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Bernhard Schussek <bschussek@gmail.com> | 1 | 1 | ||
NoTraitException | final class | SebastianBergmann\CodeUnit | vendor/ |
|||||
NotRegularDirectoryException | class | Drupal\Core\File\Exception | core/ |
Exception thrown when a target is not a regular directory (e.g. a file). | 1 | |||
NotRegularFileException | class | Drupal\Core\File\Exception | core/ |
Exception thrown when a target is not a regular file (e.g. a directory). | 1 | |||
NotTaggedControllerValueResolver | final class | Symfony\Component\HttpKernel\Controller\ArgumentResolver | vendor/ |
Provides an intuitive error message when controller fails because it is not registered as a service. | ||||
NotUnary | class | Twig\Node\Expression\Unary | vendor/ |
3 | ||||
NoUniqueFieldException | class | Drupal\Core\Database\Query | core/ |
Exception thrown if an upsert query doesn't specify a unique field. | ||||
NoUnsupportedLinksExist | final class | PhpTuf\ComposerStager\Internal\Precondition\Service | vendor/ |
@package Precondition | 2 | |||
NoUnsupportedLinksExistInterface | interface | PhpTuf\ComposerStager\API\Precondition\Service | vendor/ |
Asserts that there are no unsupported links in the codebase. | 1 | 4 | ||
NoVersionRequirementException | final class | PHPUnit\Metadata | vendor/ |
|||||
Nullable | final class | phpDocumentor\Reflection\Types | vendor/ |
Value Object representing a nullable type. The real type is wrapped. | 1 | |||
NullableType | class | PhpParser\Node | vendor/ |
2 | ||||
NullableTypeDeclarationSniff | class | PHP_CodeSniffer\Standards\PSR12\Sniffs\Functions | vendor/ |
|||||
NullableTypeForNullDefaultValueSniff | class | SlevomatCodingStandard\Sniffs\TypeHints | vendor/ |
|||||
NullableTypeNode | class | PHPStan\PhpDocParser\Ast\Type | vendor/ |
6 | ||||
NullArgument | class | Drupal\views\Plugin\views\argument | core/ |
Argument handler that ignores the argument. |