Classes, traits, and interfaces - 10.3.x - 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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
MultipleWidgetFormTest | class | Drupal\Tests\field\Functional | core/ |
Tests field form handling. | ||||
MultiStepNodeFormBasicOptionsTest | class | Drupal\Tests\node\Functional | core/ |
Tests the persistence of basic options through multiple steps. | ||||
MultiValueTestItem | class | Drupal\entity_test_update\Plugin\Field\FieldType | core/ |
Defines the 'multi_value_test' field type. | ||||
MultiWidthLayoutBase | abstract class | Drupal\layout_builder\Plugin\Layout | core/ |
Base class of layouts with configurable widths. | 2 | |||
Mysql8RequirePrimaryKeyUpdateTest | class | Drupal\Tests\mysql\Functional | core/ |
Tests updates MySQL 8 when sql_require_primary_key is on. | ||||
MySqlCastedIntFieldJoinTest | class | Drupal\Tests\mysql\Kernel\mysql\Plugin\views | core/ |
Tests MySQL specific cast handling. | ||||
MysqlCastSql | class | Drupal\mysql\Plugin\views\query | core/ |
MySQL specific cast handling. | 2 | |||
MysqlDateSql | class | Drupal\views\Plugin\views\query | core/ |
MySQL-specific date handling. | 1 | 2 | ||
MysqlDateSqlTest | class | Drupal\Tests\views\Unit\Plugin\views\query | core/ |
Tests the MySQL-specific date query handler. | ||||
MysqlDriverLegacyTest | class | Drupal\Tests\mysql\Kernel\mysql | core/ |
Tests the deprecations of the MySQL database driver classes in Core. | ||||
MysqlDriverTest | class | Drupal\Tests\mysql\Kernel\mysql | core/ |
Tests the deprecations of the MySQL database driver classes in Core. | ||||
Name | class | Drupal\user\Plugin\views\filter | core/ |
Filter handler for usernames. | 2 | 2 | ||
Name | class | Drupal\Tests\Component\Annotation\Doctrine | core/ |
|||||
NaughtyRecursiveLogger | class | Drupal\Tests\Core\Logger | core/ |
|||||
NavigationBlockUiTest | class | Drupal\Tests\navigation\FunctionalJavascript | core/ |
Tests that the navigation block UI exists and stores data correctly. | ||||
NavigationContentLinks | final class | Drupal\navigation | core/ |
Build the menu links for the Content menu. | 1 | |||
NavigationLayout | final class | Drupal\navigation | core/ |
Defines a layout class for navigation. | 1 | |||
NavigationMenuBlock | final class | Drupal\navigation\Plugin\Block | core/ |
Provides a generic menu navigation block. | 2 | |||
NavigationMenuBlockTest | class | Drupal\Tests\navigation\Kernel | core/ |
Tests \Drupal\navigation\Plugin\Block\NavigationMenuBlock. | ||||
NavigationMenuLinkTree | final class | Drupal\navigation\Menu | core/ |
Extends MenuLinkTree to add specific theme suggestions for the navigation. | 2 | |||
NavigationMenuMarkupTest | class | Drupal\Tests\navigation\Kernel | core/ |
Tests \Drupal\navigation\Plugin\Block\NavigationMenuBlock. | ||||
NavigationRenderer | final class | Drupal\navigation | core/ |
Handle rendering for different pieces of the navigation. | 2 | 2 | ||
NavigationSectionStorage | final class | Drupal\navigation\Plugin\SectionStorage | core/ |
Provides navigation section storage. | 2 | |||
NavigationServiceProvider | final class | Drupal\navigation | core/ |
Defines a service provider for the Navigation module. | ||||
NavigationShortcutsBlock | final class | Drupal\navigation\Plugin\Block | core/ |
Defines a shortcuts navigation block class. | ||||
NavigationShortcutsBlockTest | class | Drupal\Tests\navigation\Functional | core/ |
Tests for \Drupal\navigation\Plugin\Block\NavigationShortcutsBlock. | ||||
NavigationTopBarTest | class | Drupal\Tests\navigation\Functional | core/ |
Tests the top bar functionality. | ||||
NavigationUserBlock | final class | Drupal\navigation\Plugin\Block | core/ |
Defines a user navigation block. | ||||
NavigationUserBlockTest | class | Drupal\Tests\navigation\Functional | core/ |
Tests for \Drupal\navigation\Plugin\NavigationBlock\NavigationUserBlock. | ||||
NegotiationBrowserDeleteForm | class | Drupal\language\Form | core/ |
Defines a 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/ |
@coversDefaultClass \Drupal\Core\StackMiddleware\NegotiationMiddleware[[api-linebreak]] @group 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 helpers to perform operations on nested arrays and array keys of variable depth. | 113 | |||
NestedArrayTest | class | Drupal\Tests\Component\Utility | core/ |
@coversDefaultClass \Drupal\Component\Utility\NestedArray[[api-linebreak]] @group Utility | ||||
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 | ||
NewTopicsBlock | class | Drupal\forum\Plugin\Block | core/ |
Provides a 'New forum topics' block. | ||||
NewViewConfigSchemaTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests configuration schema against new views. | ||||
NextIdTest | class | Drupal\Tests\mysql\Kernel\mysql | core/ |
Tests the sequences API. | ||||
NextIdTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the sequences API. |
Pagination
- Previous page
- Page 125
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.