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 |
---|---|---|---|---|---|---|---|---|
NodePreviewConverter | class | Drupal\node\ProxyClass\ParamConverter | core/ |
Provides a proxy class for \Drupal\node\ParamConverter\NodePreviewConverter. | ||||
NodePreviewConverter | class | Drupal\node\ParamConverter | core/ |
Provides upcasting for a node entity in preview. | 2 | |||
NodePreviewForm | class | Drupal\node\Form | core/ |
Contains a form for switching the view mode of a node during preview. | 1 | |||
NodeProviderCollection | this class has been deprecated, and will be removed in 5.0.0. The use-case for this class comes from a pre-`phpstan/phpstan` and pre-`vimeo/psalm` ecosystem, in which type safety had to be mostly enforced at runtime: that is no longer necessary, now that you can safely verify your code to be correct, and use more generic types like `iterable<T>` instead. |
class | Ramsey\Uuid\Provider\Node | vendor/ |
A collection of NodeProviderInterface objects | |||
NodeProviderInterface | interface | Ramsey\Uuid\Provider | vendor/ |
A node provider retrieves or generates a node ID | 4 | 9 | ||
NodeReference | class | Drupal\migrate_drupal\Plugin\migrate\field\d6 | core/ |
MigrateField Plugin for Drupal 6 node reference fields. | ||||
NodeReference | class | Drupal\migrate_drupal\Plugin\migrate\field\d7 | core/ |
MigrateField plugin for Drupal 7 node_reference fields. | ||||
NodeRevision | class | Drupal\node\Plugin\views\wizard | core/ |
Tests creating node revision views with the wizard. | ||||
NodeRevision | class | Drupal\node\Plugin\migrate\source\d6 | core/ |
Drupal 6 node revision source from database. | 1 | |||
NodeRevision | class | Drupal\node\Plugin\migrate\source\d7 | core/ |
Drupal 7 node revision source from database. | 1 | |||
NodeRevisionDeleteForm | class | Drupal\node\Form | core/ |
Provides a form for deleting a node revision. | 1 | |||
NodeRevisionRevertForm | class | Drupal\node\Form | core/ |
Provides a form for reverting a node revision. | 1 | 1 | ||
NodeRevisionRevertTranslationForm | class | Drupal\node\Form | core/ |
Provides a form for reverting a node revision for a single translation. | 1 | |||
NodeRouteContext | class | Drupal\node\ContextProvider | core/ |
Sets the current node as a context on node routes. | 2 | |||
NodeRouteProvider | class | Drupal\node\Entity | core/ |
Provides routes for nodes. | ||||
NodeRow | class | Drupal\node\Plugin\views\row | core/ |
Plugin which performs a node_view on the resulting object. | ||||
Nodes | final class | Twig\Node | vendor/ |
Represents a list of nodes. | 14 | |||
NodeSearch | class | Drupal\node\Plugin\Search | core/ |
Handles searching for node entities using the Search module index. | ||||
NodeSelection | class | Drupal\node\Plugin\EntityReferenceSelection | core/ |
Provides specific access control for the node entity type. | ||||
NodeServiceProvider | class | Drupal\node | core/ |
Registers services in the container. | ||||
NodeStorage | class | Drupal\node | core/ |
Defines the storage handler class for nodes. | 1 | |||
NodeStorageInterface | interface | Drupal\node | core/ |
Defines an interface for node entity storage classes. | 1 | 3 | ||
NodeStorageSchema | class | Drupal\node | core/ |
Defines the node schema handler. | 1 | |||
NodeTermData | class | Drupal\taxonomy\Plugin\views\relationship | core/ |
Relationship handler to return the taxonomy terms of nodes. | ||||
NodeTestCase | abstract class | Twig\Test | vendor/ |
|||||
NodeTokensHooks | class | Drupal\node\Hook | core/ |
Hook implementations for node. | ||||
NodeTranslationExceptionSubscriber | class | Drupal\node\EventSubscriber | core/ |
Redirect node translations that have been consolidated by migration. | 1 | |||
NodeTranslationHandler | class | Drupal\node | core/ |
Defines the translation handler for nodes. | 1 | |||
NodeTranslationMigrateSubscriber | class | Drupal\node\EventSubscriber | core/ |
Creates a key value collection for migrated node translation mappings. | 1 | |||
NodeTraverser | final class | Twig | vendor/ |
A node traverser. | 1 | |||
NodeTraverser | class | PhpParser | vendor/ |
5 | ||||
NodeTraverser | final class | PHPStan\PhpDocParser\Ast | vendor/ |
Inspired by https://github.com/nikic/PHP-Parser/tree/36a6dcd04e7b0285e8f0868f44bd4927802f7df1 | 3 | |||
NodeTraverserInterface | interface | PhpParser | vendor/ |
1 | ||||
NodeType | class | Drupal\node\Plugin\migrate\source\d6 | core/ |
Drupal 6 Node types source from database. | ||||
NodeType | class | Drupal\node\Plugin\migrate\source\d7 | core/ |
Drupal 7 Node types source from database. | ||||
NodeType | class | Drupal\node\Entity | core/ |
Defines the Node type configuration entity. | 4 | |||
NodeTypeAccessControlHandler | class | Drupal\node | core/ |
Defines the access control handler for the node type entity type. | 1 | |||
NodeTypeDeleteConfirm | class | Drupal\node\Form | core/ |
Provides a form for content type deletion. | 1 | |||
NodeTypeForm | class | Drupal\node | core/ |
Form handler for node type forms. | 1 | |||
NodeTypeInterface | interface | Drupal\node | core/ |
Provides an interface defining a node type entity. | 1 | 4 | ||
NodeTypeListBuilder | class | Drupal\node | core/ |
Defines a class to build a listing of node type entities. | 1 | |||
NodeTypeMapper | class | Drupal\node\ConfigTranslation | core/ |
Provides a configuration mapper for node types. | ||||
NodeUpdate7008 | class | Drupal\node\Plugin\migrate\process\d6 | core/ |
Split the 'administer nodes' permission from 'access content overview'. | ||||
NodeViewBuilder | class | Drupal\node | core/ |
View builder handler for nodes. | 1 | |||
NodeViewController | class | Drupal\node\Controller | core/ |
Defines a controller to render a single node. | ||||
NodeViewsData | class | Drupal\node | core/ |
Provides the views data for the node entity type. | 1 | |||
NodeViewsExecutionHooks | class | Drupal\node\Hook | core/ |
Hook implementations for node. | ||||
NodeViewsHooks | class | Drupal\node\Hook | core/ |
Hook implementations for node. | ||||
NodeVisitor | interface | PhpParser | vendor/ |
1 | 1 | |||
NodeVisitor | interface | PHPStan\PhpDocParser\Ast | vendor/ |
Inspired by https://github.com/nikic/PHP-Parser/tree/36a6dcd04e7b0285e8f0868f44bd4927802f7df1 | 1 |