Classes, traits, and interfaces - 9.5.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 1523
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| MoveTest | class | Drupal\Tests\file\Kernel | core/ |
Tests the file move function. | ||||
| MTimeProtectedFastFileStorage | class | Drupal\Component\PhpStorage | core/ |
Stores PHP code in files with securely hashed names. | 1 | |||
| MTimeProtectedFastFileStorageTest | class | Drupal\Tests\Component\PhpStorage | core/ |
Tests the MTimeProtectedFastFileStorage implementation. | ||||
| MTimeProtectedFileStorage | class | Drupal\Component\PhpStorage | core/ |
Stores PHP code in files with securely hashed names. | 1 | |||
| MTimeProtectedFileStorageBase | abstract class | Drupal\Tests\Component\PhpStorage | core/ |
Base test class for MTime protected storage. | 2 | |||
| MTimeProtectedFileStorageTest | class | Drupal\Tests\Component\PhpStorage | core/ |
Tests the MTimeProtectedFileStorage implementation. | ||||
| MultiFormTest | class | Drupal\FunctionalJavascriptTests\Ajax | core/ |
Tests AJAX-enabled forms when multiple instances of the form are on a page. | ||||
| MultiItemsFieldHandlerInterface | interface | Drupal\views\Plugin\views\field | core/ |
Defines a field handler which renders multiple items per row. | 2 | |||
| MultilingualReviewPageTest | class | Drupal\Tests\migrate_drupal_ui\Functional\d6 | core/ |
Tests migrate upgrade review page for Drupal 6. | ||||
| MultilingualReviewPageTest | class | Drupal\Tests\migrate_drupal_ui\Functional\d7 | core/ |
Tests migrate upgrade review page for Drupal 7. | ||||
| MultilingualReviewPageTest | class | Drupal\Tests\aggregator\Functional\migrate_drupal_ui\d6 | core/ |
Tests migrate upgrade review page for Drupal 6 for the aggregator module. | ||||
| MultilingualReviewPageTest | class | Drupal\Tests\aggregator\Functional\migrate_drupal_ui\d7 | core/ |
Tests migrate upgrade review page for Drupal 7 for the aggregator module. | ||||
| MultilingualReviewPageTestBase | abstract class | Drupal\Tests\migrate_drupal_ui\Functional | core/ |
Provides a base class for testing the review step of the Upgrade form. | 5 | 4 | ||
| MultipleBlockFormTest | class | Drupal\KernelTests\Core\Block | core/ |
Tests that blocks can have multiple forms. | ||||
| MultipleDistributionsProfileTest | class | Drupal\FunctionalTests\Installer | core/ |
Tests multiple distribution profile support. | ||||
| MultipleFileUploadTest | class | Drupal\Tests\file\Functional | core/ |
Tests multiple file upload. | ||||
| MultipleProviderAnnotationInterface | interface | Drupal\migrate\Annotation | core/ |
Defines a common interface for classed annotations with multiple providers. | 1 | 1 | ||
| MultipleStaticContext | class | Drupal\block_test\ContextProvider | core/ |
Sets multiple contexts for a static value. | 2 | |||
| 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\user\Functional | core/ |
Tests user_update_9301() on MySQL 8 when sql_require_primary_key is on. | ||||
| 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. | ||||
| Name | class | Drupal\user\Plugin\views\filter | core/ |
Filter handler for usernames. | 2 | 2 | ||
| Name | class | Drupal\Tests\Component\Annotation\Doctrine | core/ |
|||||
| NameMungingTest | class | Drupal\KernelTests\Core\File | core/ |
Tests filename munging and unmunging. | ||||
| NaughtyRecursiveLogger | class | Drupal\Tests\Core\Logger | core/ |
|||||
| 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. | 110 | |||
| NestedArrayTest | class | Drupal\Tests\Component\Utility | core/ |
@coversDefaultClass \Drupal\Component\Utility\NestedArray[[api-linebreak]] @group Utility | ||||
| 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. | ||||
| NewMimeTypeGuesser | class | Drupal\Tests\Core\DependencyInjection\Compiler | core/ |
|||||
| 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. | ||||
| NewViewAggregatorConfigSchemaTest | class | Drupal\Tests\aggregator\Functional\views_ui | core/ |
Tests aggregator configuration schema against new views. | ||||
| NewViewConfigSchemaTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests configuration schema against new views. | ||||
| NextIdTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the sequences API. |
Pagination
- Previous page
- Page 118
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.