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
NamedArgumentSpacingSniff class SlevomatCodingStandard\Sniffs\Functions vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Functions/NamedArgumentSpacingSniff.php
NamedColoursSniff class PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/NamedColoursSniff.php
NameDeprecation class Twig\Node vendor/twig/twig/src/Node/NameDeprecation.php Represents a deprecation for a named node or attribute on a Node. 3
NamedParameterMap class Ramsey\Collection\Map vendor/ramsey/collection/src/Map/NamedParameterMap.php `NamedParameterMap` represents a mapping of values to a set of named keys that may optionally be typed
NamedSelector class Behat\Mink\Selector vendor/behat/mink/src/Selector/NamedSelector.php Named selectors engine. Uses registered XPath selectors to create new expressions. 2
NameException class Ramsey\Uuid\Exception vendor/ramsey/uuid/src/Exception/NameException.php Thrown to indicate that an error occurred while attempting to hash a namespace and name 2
NameExpression class Twig\Node\Expression vendor/twig/twig/src/Node/Expression/NameExpression.php 2 12
NameFilterIterator final class PHPUnit\Runner\Filter vendor/phpunit/phpunit/src/Runner/Filter/NameFilterIterator.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
NameGenerator class Prophecy\Doubler vendor/phpspec/prophecy/src/Prophecy/Doubler/NameGenerator.php Name generator. Generates classname for double.
NameGeneratorFactory class Ramsey\Uuid\Generator vendor/ramsey/uuid/src/Generator/NameGeneratorFactory.php NameGeneratorFactory retrieves a default name generator, based on the environment 1
NameGeneratorInterface interface Ramsey\Uuid\Generator vendor/ramsey/uuid/src/Generator/NameGeneratorInterface.php A name generator generates strings of binary data created by hashing together a namespace with a name, according to a hashing algorithm 2 2
NamePart class Google\Protobuf\Internal\UninterpretedOption vendor/google/protobuf/src/Google/Protobuf/Internal/UninterpretedOption/NamePart.php The name of the uninterpreted option. Each string represents a segment in a dot-separated name. is_extension is true iff a segment represents an extension (denoted with parentheses in options specs in .proto files). E.g.,{ ["foo", false],…
NamePrettifier final class PHPUnit\Logging\TestDox vendor/phpunit/phpunit/src/Logging/TestDox/NamePrettifier.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1
NameResolver class PhpParser\NodeVisitor vendor/nikic/php-parser/lib/PhpParser/NodeVisitor/NameResolver.php 2
NamespaceCheck final class mglaman\PHPStanDrupal\Internal vendor/mglaman/phpstan-drupal/src/Internal/NamespaceCheck.php @internal 1
NamespacedDependencySniff class DrupalPractice\Sniffs\InfoFiles vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/InfoFiles/NamespacedDependencySniff.php Checks that all declared dependencies are namespaced.
NamespaceDeclarationSniff class SlevomatCodingStandard\Sniffs\Namespaces vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Namespaces/NamespaceDeclarationSniff.php
NamespaceDeclarationSniff class PHP_CodeSniffer\Standards\PSR2\Sniffs\Namespaces vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Namespaces/NamespaceDeclarationSniff.php
NamespaceHelper class SlevomatCodingStandard\Helpers vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/NamespaceHelper.php Terms "unqualified", "qualified" and "fully qualified" have the same meaning as described here: http://php.net/manual/en/language.namespaces.rules.php 21
NamespaceNotFoundException class Symfony\Component\Console\Exception vendor/symfony/console/Exception/NamespaceNotFoundException.php Represents an incorrect namespace typed in the console. 1
NamespaceSniff class Drupal\Sniffs\WhiteSpace vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/WhiteSpace/NamespaceSniff.php Checks that there is exactly one space after the namespace keyword.
NamespaceSpacingSniff class SlevomatCodingStandard\Sniffs\Namespaces vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Namespaces/NamespaceSpacingSniff.php
NamespaceUri class TheSeer\Tokenizer vendor/theseer/tokenizer/src/NamespaceUri.php 1
NamespaceUriException class TheSeer\Tokenizer vendor/theseer/tokenizer/src/NamespaceUriException.php
Namespace_ class PhpParser\Node\Stmt vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Namespace_.php 1
Namespace_ class PhpParser\Builder vendor/nikic/php-parser/lib/PhpParser/Builder/Namespace_.php
Namespace_ class PhpParser\Node\Scalar\MagicConst vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Namespace_.php
NativeCalculator class Brick\Math\Internal\Calculator vendor/brick/math/src/Internal/Calculator/NativeCalculator.php Calculator implementation using only native PHP code.
NativeFileSessionHandler class Symfony\Component\HttpFoundation\Session\Storage\Handler vendor/symfony/http-foundation/Session/Storage/Handler/NativeFileSessionHandler.php Native session handler using PHP's built in file storage.
NativeSessionStorage class Symfony\Component\HttpFoundation\Session\Storage vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php This provides a base class for session attribute storage. 2 2
NativeSessionStorageFactory class Symfony\Component\HttpFoundation\Session\Storage vendor/symfony/http-foundation/Session/Storage/NativeSessionStorageFactory.php @author Jérémy Derussé <jeremy@derusse.com>
NativeTransportFactory final class Symfony\Component\Mailer\Transport vendor/symfony/mailer/Transport/NativeTransportFactory.php Factory that configures a transport (sendmail or SMTP) based on php.ini settings. 1
NavigationContentLinks final class Drupal\navigation core/modules/navigation/src/NavigationContentLinks.php Build the menu links for the Content menu. 1
NavigationHooks class Drupal\navigation\Hook core/modules/navigation/src/Hook/NavigationHooks.php Hook implementations for navigation.
NavigationLayout final class Drupal\navigation core/modules/navigation/src/NavigationLayout.php Defines a layout class for navigation. 1
NavigationLinkBlock final class Drupal\navigation\Plugin\Block core/modules/navigation/src/Plugin/Block/NavigationLinkBlock.php Defines a link navigation block.
NavigationMenuBlock final class Drupal\navigation\Plugin\Block core/modules/navigation/src/Plugin/Block/NavigationMenuBlock.php Provides a generic menu navigation block.
NavigationMenuLinkTree final class Drupal\navigation\Menu core/modules/navigation/src/Menu/NavigationMenuLinkTree.php Extends MenuLinkTree to add specific theme suggestions for the navigation. 2
NavigationRenderer final class Drupal\navigation core/modules/navigation/src/NavigationRenderer.php Handle rendering for different pieces of the navigation. 3 2
NavigationSectionStorage final class Drupal\navigation\Plugin\SectionStorage core/modules/navigation/src/Plugin/SectionStorage/NavigationSectionStorage.php Provides navigation section storage. 2
NavigationServiceProvider final class Drupal\navigation core/modules/navigation/src/NavigationServiceProvider.php Defines a service provider for the Navigation module.
NavigationShortcutsBlock final class Drupal\navigation\Plugin\Block core/modules/navigation/src/Plugin/Block/NavigationShortcutsBlock.php Defines a shortcuts navigation block class.
NavigationTopBarHooks class Drupal\navigation_top_bar\Hook core/modules/navigation/modules/navigation_top_bar/src/Hook/NavigationTopBarHooks.php Hook implementations for navigation_top_bar.
NavigationUserBlock final class Drupal\navigation\Plugin\Block core/modules/navigation/src/Plugin/Block/NavigationUserBlock.php Defines a user navigation block.
NearMissValueResolverException class Symfony\Component\HttpKernel\Exception vendor/symfony/http-kernel/Exception/NearMissValueResolverException.php Lets value resolvers tell when an argument could be under their watch but failed to be resolved. 4
NegationNode class Symfony\Component\CssSelector\Node vendor/symfony/css-selector/Node/NegationNode.php Represents a "<selector>:not(<identifier>)" node.
NegationOperatorSpacingSniff class SlevomatCodingStandard\Sniffs\Operators vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Operators/NegationOperatorSpacingSniff.php
Negative class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/Negative.php Validates that a value is a negative number.
NegativeInteger final class phpDocumentor\Reflection\PseudoTypes vendor/phpdocumentor/type-resolver/src/PseudoTypes/NegativeInteger.php Value Object representing the type 'int'. 1
NegativeNumberException class Brick\Math\Exception vendor/brick/math/src/Exception/NegativeNumberException.php Exception thrown when attempting to perform an unsupported operation, such as a square root, on a negative number. 2

Pagination

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