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 |
---|---|---|---|---|---|---|---|---|
Node | class | Drupal\node\Plugin\views\wizard | core/ |
Tests creating node views with the wizard. | ||||
Node | abstract class | SebastianBergmann\CodeCoverage\Report\Xml | vendor/ |
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage | 2 | |||
Node | class | Drupal\node\Plugin\views\argument_default | core/ |
Default argument plugin to extract a node. | ||||
Node | abstract class | Peast\Syntax\Node | vendor/ |
Base class for all the nodes generated by Peast. | 75 | 19 | ||
Node | class | Twig\Node | vendor/ |
Represents a node in the AST. | 30 | 66 | ||
Node | class | Drupal\node\Plugin\migrate\source\d6 | core/ |
Drupal 6 node source from database. | 1 | |||
Node | interface | PhpParser | vendor/ |
2 | 148 | |||
Node | interface | PHPStan\PhpDocParser\Ast | vendor/ |
12 | 18 | |||
Node | class | Drupal\node\Plugin\migrate\source\d7 | core/ |
Drupal 7 node source from database. | 1 | |||
Node | class | Drupal\node\Entity | core/ |
Defines the node entity class. | 4 | |||
NodeAbstract | abstract class | PhpParser | vendor/ |
20 | 23 | |||
NodeAccessControlHandler | class | Drupal\node | core/ |
Defines the access control handler for the node entity type. | 1 | |||
NodeAccessControlHandlerInterface | interface | Drupal\node | core/ |
Node specific entity access control methods. | 1 | |||
NodeAccessGrantsCacheContext | class | Drupal\node\Cache | core/ |
Defines the node access view cache context service. | 2 | |||
NodeAdminRouteSubscriber | class | Drupal\node\EventSubscriber | core/ |
Sets the _admin_route for specific node-related routes. | 2 | |||
NodeAttributes | trait | PHPStan\PhpDocParser\Ast | vendor/ |
67 | ||||
NodeBulkForm | class | Drupal\node\Plugin\views\field | core/ |
Defines a node operations bulk form element. | ||||
NodeCaptureInterface | interface | Twig\Node | vendor/ |
Represents a node that captures any nested displayable nodes. | 1 | 1 | ||
NodeComment | class | Drupal\comment\Plugin\views\filter | core/ |
Filter based on comment node status. | ||||
NodeComplete | class | Drupal\node\Plugin\migrate\source\d6 | core/ |
Drupal 6 all node revisions source, including translation revisions. | ||||
NodeComplete | class | Drupal\node\Plugin\migrate\source\d7 | core/ |
Drupal 7 all node revisions source, including translation revisions. | ||||
NodeCompleteNodeLookup | class | Drupal\migrate_drupal\Plugin\migrate\process | core/ |
Returns only the nid from migration_lookup on node_complete migration. | ||||
NodeCompleteNodeRevisionLookup | class | Drupal\migrate_drupal\Plugin\migrate\process | core/ |
Returns only the vid from migration_lookup on node_complete migration. | ||||
NodeCompleteNodeTranslationLookup | class | Drupal\migrate_drupal\Plugin\migrate\process | core/ |
Returns nid and langcode from migration_lookup on node_complete migration. | ||||
NodeConnectingVisitor | final class | PhpParser\NodeVisitor | vendor/ |
Visitor that connects a child node to its parent node as well as its sibling nodes. | ||||
NodeController | class | Drupal\node\Controller | core/ |
Returns responses for Node routes. | ||||
NodeDeleteForm | class | Drupal\node\Form | core/ |
Provides a form for deleting a node. | 1 | |||
NodeDumper | class | PhpParser | vendor/ |
|||||
NodeElement | class | Behat\Mink\Element | vendor/ |
Page element node. | 3 | |||
NodeEntityTranslation | class | Drupal\node\Plugin\migrate\source\d7 | core/ |
Drupal 7 node entity translations source from database. | ||||
NodeException | class | Ramsey\Uuid\Exception | vendor/ |
Thrown to indicate that attempting to fetch or create a node ID encountered an error | 2 | |||
NodeExtension | class | Symfony\Component\CssSelector\XPath\Extension | vendor/ |
XPath expression translator node extension. | ||||
NoDefaultTestSuiteException | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
NodeFinder | class | PhpParser | vendor/ |
|||||
NodeForm | class | Drupal\node | core/ |
Form handler for the node edit forms. | 1 | |||
NodeGrantDatabaseStorage | class | Drupal\node | core/ |
Defines a storage handler class that handles the node grants system. | 2 | |||
NodeGrantDatabaseStorageInterface | interface | Drupal\node | core/ |
Provides an interface for node access grant storage. | 1 | |||
NodeHooks | class | Drupal\node\Hook | core/ |
Hook implementations for the node module. | ||||
NodeHooks1 | class | Drupal\node\Hook | core/ |
Hook implementations for node. | ||||
NodeInterface | interface | Drupal\node | core/ |
Provides an interface defining a node entity. | 1 | 24 | ||
NodeInterface | interface | Symfony\Component\CssSelector\Node | vendor/ |
Interface for nodes. | 1 | 1 | ||
NodeListBuilder | class | Drupal\node | core/ |
Defines a class to build a listing of node entities. | 1 | 2 | ||
NodeMigrateType | final class | Drupal\migrate_drupal | core/ |
Provides a class to determine the type of migration. | 1 | |||
NodeModerationHandler | class | Drupal\content_moderation\Entity\Handler | core/ |
Customizations for node entities. | 1 | |||
NodeModulesExcluder | class | Drupal\package_manager\PathExcluder | core/ |
Excludes node_modules files from stage directories. | ||||
NodeNewComments | class | Drupal\comment\Plugin\views\field | core/ |
Field handler to display the number of new comments. | ||||
NodeOutputInterface | interface | Twig\Node | vendor/ |
Represents a displayable node in the AST. | 4 | 1 | ||
NodePermissions | class | Drupal\node | core/ |
Provides dynamic permissions for nodes of different types. | ||||
NodePreviewAccessCheck | class | Drupal\node\Access | core/ |
Determines access to node previews. | 2 | |||
NodePreviewController | class | Drupal\node\Controller | core/ |
Defines a controller to render a single node in preview. |