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 |
|---|---|---|---|---|---|---|---|---|
| MaintenanceModeSubscriber | class | Drupal\user\EventSubscriber | core/ |
Maintenance mode subscriber to log out users. | 2 | |||
| MaintenanceThemeTest | class | Drupal\KernelTests\Core\Theme | core/ |
Tests themes and base themes are correctly loaded. | ||||
| MaintenanceThemeUpdateRegistryTest | class | Drupal\Tests\system\Functional\Theme | core/ |
Ensures theme update functions are registered for maintenance themes. | ||||
| MakeUniqueBase | abstract class | Drupal\migrate\Plugin\migrate\process | core/ |
This plugin ensures the source value is unique. | 1 | |||
| MakeUniqueEntityField | class | Drupal\migrate\Plugin\migrate\process | core/ |
Ensures the source value is made unique against an entity field. | 1 | |||
| MakeUniqueEntityFieldTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests Drupal\migrate\Plugin\migrate\process\MakeUniqueEntityField. | ||||
| ManagedFile | class | Drupal\file\Element | core/ |
Provides an AJAX/progress aware widget for uploading and saving a file. | 2 | |||
| ManagedFileElementHelper | class | Drupal\file\Upload | core/ |
Helper class for ManagedFile element form file uploads. | 6 | |||
| ManagedFileFidValidationTest | class | Drupal\Tests\file\Functional | core/ |
Tests the file validation in the ManagedFile element for private files. | ||||
| ManagedFileTest | class | Drupal\Tests\file\Kernel | core/ |
Managed file element test. | ||||
| ManageDisplayTest | class | Drupal\Tests\field_ui\FunctionalJavascript | core/ |
Tests the Field UI "Manage display" and "Manage form display" screens. | ||||
| ManageDisplayTest | class | Drupal\Tests\field_ui\Functional | core/ |
Tests the Field UI "Manage display" and "Manage form display" screens. | ||||
| ManagedStorage | final class | Drupal\Core\Config | core/ |
The managed storage defers all the storage method calls to the manager. | 1 | 2 | ||
| ManagedStorageTest | class | Drupal\KernelTests\Core\Config\Storage | core/ |
Tests ManagedStorage operations. | ||||
| ManageFieldsFunctionalTest | class | Drupal\Tests\field_ui\Functional | core/ |
Tests the Field UI "Manage fields" screen. | ||||
| ManageFieldsFunctionalTestBase | abstract class | Drupal\Tests\field_ui\Functional | core/ |
Tests the Field UI "Manage fields" screen. | 3 | |||
| ManageFieldsLifecycleTest | class | Drupal\Tests\field_ui\Functional | core/ |
Tests the Field UI "Manage fields" screen. | ||||
| ManageFieldsMultipleTypesTest | class | Drupal\Tests\field_ui\Functional | core/ |
Tests the Field UI "Manage fields" screen. | ||||
| ManageFieldsTest | class | Drupal\Tests\field_ui\FunctionalJavascript | core/ |
Tests the Field UI "Manage Fields" screens. | ||||
| ManageFieldsTest | class | Drupal\Tests\field_ui\Functional | core/ |
Tests the Manage Display page of a fieldable entity type. | ||||
| ManageFieldsTest | class | Drupal\Tests\field_ui\Kernel | core/ |
Tests the Field UI "Manage fields" screen. | ||||
| ManageGitIgnore | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Manage the .gitignore file. | ||||
| ManageGitIgnoreTest | class | Drupal\Tests\Composer\Plugin\Scaffold\Functional | core/ |
Tests to see whether .gitignore files are correctly managed. | ||||
| ManageOptions | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Per-project options from the 'extras' section of the composer.json file. | ||||
| ManyAssetsLoadOrderTest | class | Drupal\KernelTests\Core\Libraries | core/ |
Tests the loading of many weighted assets. | ||||
| ManyAssetsLoadOrderTest | class | Drupal\FunctionalTests\Libraries | core/ |
Tests the loading of many weighted assets. | ||||
| ManyAssetsTestController | class | Drupal\many_assets_test\Controller | core/ |
Provides a controller for testing asset loading order. | ||||
| ManyAssetsTestHooks | class | Drupal\many_assets_test\Hook | core/ |
Hook implementations for many_assets_test. | ||||
| ManyPlaceholderTest | class | Drupal\Tests\big_pipe\Unit\Render | core/ |
Tests Drupal\big_pipe\Render\BigPipe. | ||||
| ManyToOne | class | Drupal\views\Plugin\views\filter | core/ |
Complex filter to handle filtering for many to one relationships. | 5 | 4 | ||
| ManyToOne | class | Drupal\views\Plugin\views\argument | core/ |
Argument handler for many to one relationships. | 2 | 2 | ||
| ManyToOneHelper | class | Drupal\views | core/ |
This many to one helper object is used on both arguments and filters. | 3 | |||
| Map | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The "map" data type. | 1 | 1 | ||
| MapBaseFieldTest | class | Drupal\KernelTests\Core\Field | core/ |
Tests map base fields. | ||||
| MapDataDefinition | class | Drupal\Core\TypedData | core/ |
A typed data definition class for defining maps. | 13 | 1 | ||
| MapDataNormalizerTest | class | Drupal\Tests\serialization\Kernel | core/ |
Tests Map Data Normalizer. | ||||
| MapFieldItemList | class | Drupal\Core\Field | core/ |
Defines an item list class for map fields. | 1 | |||
| MapItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'map' entity field type. | ||||
| MappedClass | class | Drupal\Tests\Component\Annotation\Doctrine\Ticket | core/ |
@Entity | ||||
| MappedDiff | class | Drupal\Component\Diff | core/ |
FIXME: bad name. | 1 | |||
| MapperExceptionInterface | interface | Drupal\Component\Plugin\Exception | core/ |
Base exception interface for grouping mapper exceptions. | ||||
| MapperInterface | interface | Drupal\Component\Plugin\Mapper | core/ |
Plugin mapper interface. | 1 | 3 | ||
| Mapping | class | Drupal\Core\Config\Schema | core/ |
Defines a mapping configuration element. | 12 | 1 | ||
| Mapping | abstract class | Drupal\views\Plugin\views\style | core/ |
Allows fields to be mapped to specific use cases. | 1 | 1 | ||
| MappingCollectionConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Checks that at least one of the given constraints is satisfied. | 1 | |||
| MappingCollectionConstrainTest | class | Drupal\KernelTests\Core\Validation | core/ |
Tests nested composite validation constraints. | ||||
| MappingCollectionConstraintValidator | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Validates the MappingCollection constraint. | 1 | |||
| MappingTest | class | Drupal\KernelTests\Config\Schema | core/ |
Tests Drupal\Core\Config\Schema\Mapping. | ||||
| MappingTest | class | Drupal\views_test_data\Plugin\views\style | core/ |
Provides a test plugin for the mapping style. | ||||
| Marker | class | Drupal\Tests\Component\Annotation\Doctrine | core/ |
Pagination
- Previous page
- Page 124
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.