Classes, traits, and interfaces - main - drupal
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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| NavigationShortcutsBlockTest | class | Drupal\Tests\navigation\Functional | core/ |
Tests for \Drupal\navigation\Plugin\Block\NavigationShortcutsBlock. | ||||
| NavigationShortcutsBlockTest | class | Drupal\Tests\shortcut\Functional | core/ |
Tests the \Drupal\shortcut\Plugin\Block\ShortcutNavigationBlock block. | ||||
| NavigationTestBlock | final class | Drupal\navigation_test_block\Plugin\Block | core/ |
Defines a dummy navigation block for testing purposes. | ||||
| NavigationTestBlockHooks | class | Drupal\navigation_test_block\Hook | core/ |
Hooks implementations for navigation_test_block module. | ||||
| NavigationTestHooks | class | Drupal\navigation_test\Hook | core/ |
Hooks implementations for navigation_test module. | ||||
| NavigationTestThemeHooks | class | Drupal\navigation_test\Hook | core/ |
Theme hook implementations for navigation_test module. | ||||
| NavigationThemeHooks | class | Drupal\navigation\Hook | core/ |
Theme hooks for navigation. | 1 | |||
| NavigationTopBarContentModerationTest | class | Drupal\Tests\navigation\Functional | core/ |
Tests the top bar behavior along with content moderation. | ||||
| NavigationTopBarPageContextTest | class | Drupal\Tests\navigation\Functional | core/ |
Tests the PageContext top bar item functionality. | ||||
| NavigationTopBarTest | class | Drupal\Tests\navigation\Functional | core/ |
Tests the top bar functionality. | ||||
| NavigationUpdateTest | class | Drupal\Tests\navigation\Functional\Update | core/ |
Tests moving search from node to search_node. | ||||
| NavigationUserBlock | final class | Drupal\navigation\Plugin\Block | core/ |
Defines a user navigation block. | ||||
| NavigationUserBlockTest | class | Drupal\Tests\navigation\FunctionalJavascript | core/ |
Tests for \Drupal\navigation\Plugin\NavigationBlock\NavigationUserBlock. | ||||
| NavigationUserBlockTest | class | Drupal\Tests\navigation\Functional | core/ |
Tests for \Drupal\navigation\Plugin\NavigationBlock\NavigationUserBlock. | ||||
| NavigationWorkspacesUiTest | class | Drupal\Tests\navigation\Functional | core/ |
Tests for \Drupal\navigation\WorkspacesLazyBuilder. | ||||
| NegotiationBrowserDeleteForm | class | Drupal\language\Form | core/ |
The confirmation form for deleting a browser language negotiation mapping. | 1 | |||
| NegotiationBrowserForm | class | Drupal\language\Form | core/ |
Configure the browser language negotiation method for this site. | 1 | |||
| NegotiationConfigureForm | class | Drupal\language\Form | core/ |
Configure the selected language negotiation method for this site. | 1 | |||
| NegotiationMiddleware | class | Drupal\Core\StackMiddleware | core/ |
Provides a middleware to determine the content type upon the accept header. | 1 | 3 | 2 | |
| NegotiationMiddlewareTest | class | Drupal\Tests\Core\StackMiddleware | core/ |
Tests Drupal\Core\StackMiddleware\NegotiationMiddleware. | ||||
| NegotiationSelectedForm | class | Drupal\language\Form | core/ |
Configure the selected language negotiation method for this site. | 1 | |||
| NegotiationSessionForm | class | Drupal\language\Form | core/ |
Configure the session language negotiation method for this site. | 1 | |||
| NegotiationUrlForm | class | Drupal\language\Form | core/ |
Configure the URL language negotiation method for this site. | 1 | |||
| NegotiatorBase | abstract class | Drupal\jsonapi\Revisions | core/ |
Base implementation for version negotiators. | 2 | |||
| NestedArray | class | Drupal\Component\Utility | core/ |
Provides methods for working with nested arrays of variable depth. | 126 | |||
| NestedArrayTest | class | Drupal\Tests\Component\Utility | core/ |
Tests Drupal\Component\Utility\NestedArray. | ||||
| NestedCompositeConstraintValidatorTest | class | Drupal\KernelTests\Core\Validation | core/ |
Tests nested composite validation constraints. | ||||
| NestedConfigTargetForm | class | Drupal\form_test\Form | core/ |
Test form for testing config targets that are not 1:1. | 1 | |||
| NestedEntityTestForm | class | Drupal\field_test\Form | core/ |
Provides a form for field_test routes. | 1 | |||
| NestedFormTest | class | Drupal\Tests\field\Functional | core/ |
Tests field elements in nested forms. | ||||
| NestedTableDragTestForm | class | Drupal\tabledrag_test\Form | core/ |
Provides a form for testing nested draggable tables. | 1 | |||
| NewDefaultThemeBlocksTest | class | Drupal\Tests\block\Kernel | core/ |
Tests that a new default theme gets blocks. | ||||
| NewService | class | Drupal\new_dependency_test_with_service | core/ |
Generic service returning a greeting. | 2 | 2 | ||
| NewViewConfigSchemaTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests configuration schema against new views. | ||||
| Nid | class | Drupal\node\Plugin\views\argument | core/ |
Argument handler to accept a node id. | ||||
| NidArgumentTest | class | Drupal\Tests\node\Kernel\Views | core/ |
Tests the nid argument handler. | ||||
| NoBigPipeRouteAlterSubscriber | class | Drupal\big_pipe\EventSubscriber | core/ |
Sets the '_no_big_pipe' option on select routes. | 2 | |||
| NoCheckpointsException | final class | Drupal\Core\Config\Checkpoint | core/ |
Thrown when using the checkpoint storage with no checkpoints. | ||||
| NoCorrespondingEntityClassException | class | Drupal\Core\Entity\Exception | core/ |
Exception thrown if an entity type is not represented by a class. | 2 | |||
| Node | class | Drupal\node\Entity | core/ |
Defines the node entity class. | 201 | |||
| Node | class | Drupal\node\Plugin\views\field | core/ |
Field handler to provide simple renderer that allows linking to a node. | ||||
| Node | class | Drupal\node\Plugin\views\wizard | core/ |
Tests creating node views with the wizard. | ||||
| Node | class | Drupal\node\Plugin\views\argument_default | core/ |
Default argument plugin to extract a node. | ||||
| Node | class | Drupal\node\Plugin\migrate\source\d6 | core/ |
Drupal 6 node source from database. | 1 | 3 | ||
| Node | class | Drupal\node\Plugin\migrate\source\d7 | core/ |
Drupal 7 node source from database. | 1 | 2 | ||
| NodeAccessBaseTableTest | class | Drupal\Tests\node\Functional | core/ |
Tests behavior of the node access subsystem if the base table is not node. | ||||
| NodeAccessCacheabilityTest | class | Drupal\Tests\node\Functional | core/ |
Tests the node access automatic cacheability bubbling logic. | ||||
| NodeAccessCacheabilityWithNodeGrantsTest | class | Drupal\Tests\node\Functional | core/ |
Tests node view access cacheability with node grants. | ||||
| NodeAccessCacheRedirectWarningTest | class | Drupal\Tests\node\Functional | core/ |
Tests the node access grants cache context service. | ||||
| NodeAccessControlHandler | class | Drupal\node | core/ |
Defines the access control handler for the node entity type. | 2 |
Pagination
- Previous page
- Page 144
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.