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 |
|---|---|---|---|---|---|---|---|---|
| MediaEmbedFilterConfigurationUiAddTest | class | Drupal\Tests\media\FunctionalJavascript | core/ |
Tests Media Embed Filter Configuration Ui Add. | ||||
| MediaEmbedFilterConfigurationUiEditTest | class | Drupal\Tests\media\FunctionalJavascript | core/ |
Tests Media Embed Filter Configuration Ui Edit. | ||||
| MediaEmbedFilterDisabledIntegrationsTest | class | Drupal\Tests\media\Kernel | core/ |
Tests that media embed disables certain integrations. | ||||
| MediaEmbedFilterTest | class | Drupal\Tests\media\Kernel | core/ |
Tests Drupal\media\Plugin\Filter\MediaEmbed. | ||||
| MediaEmbedFilterTestBase | abstract class | Drupal\Tests\media\FunctionalJavascript | core/ |
Base class for media embed filter configuration tests. | 2 | |||
| MediaEmbedFilterTestBase | abstract class | Drupal\Tests\media\Kernel | core/ |
Base class for Media Embed filter tests. | 4 | |||
| MediaEmbedFilterTranslationTest | class | Drupal\Tests\media\Kernel | core/ |
Tests that media embeds are translated based on text (host entity) language. | ||||
| MediaEntityMetadataApiTest | class | Drupal\Tests\ckeditor5\Functional | core/ |
Tests the media entity metadata API. | ||||
| MediaFilterController | class | Drupal\media\Controller | core/ |
Controller which renders a preview of the provided text. | 1 | 2 | ||
| MediaFilterControllerTest | class | Drupal\Tests\media\Kernel | core/ |
Tests that media preview route follows the media's access control. | ||||
| MediaForm | class | Drupal\media | core/ |
Form controller for the media edit forms. | 2 | |||
| MediaFunctionalTestBase | abstract class | Drupal\Tests\media\Functional | core/ |
Base class for Media functional tests. | 18 | 3 | ||
| MediaFunctionalTestTrait | trait | Drupal\Tests\media\Functional | core/ |
Trait with helpers for Media functional tests. | 1 | |||
| MediaHooks | class | Drupal\media\Hook | core/ |
Hook implementations for media. | 3 | |||
| MediaInstallTest | class | Drupal\Tests\media\Functional | core/ |
Tests media Install / Uninstall logic. | ||||
| MediaInterface | interface | Drupal\media | core/ |
Provides an interface defining an entity for media items. | 1 | 17 | ||
| MediaJavascriptTestBase | abstract class | Drupal\Tests\media\FunctionalJavascript | core/ |
Base class for Media functional JavaScript tests. | 8 | |||
| MediaJsonAnonTest | class | Drupal\Tests\media\Functional\Rest | core/ |
Tests Media Json Anon. | ||||
| MediaJsonBasicAuthTest | class | Drupal\Tests\media\Functional\Rest | core/ |
Tests Media Json Basic Auth. | ||||
| MediaJsonCookieTest | class | Drupal\Tests\media\Functional\Rest | core/ |
Tests Media Json Cookie. | ||||
| MediaKernelTestBase | abstract class | Drupal\Tests\media\Kernel | core/ |
Base class for Media kernel tests. | 11 | |||
| MediaLibrary | class | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
CKEditor 5 Media Library plugin. | 1 | 1 | ||
| MediaLibraryAccessTest | class | Drupal\Tests\media_library\Kernel | core/ |
Tests the media library access. | ||||
| MediaLibraryAddFormTest | class | Drupal\Tests\media_library\Kernel | core/ |
Tests the media library add form. | ||||
| MediaLibraryContextualFilterTest | class | Drupal\Tests\media_library\FunctionalJavascript | core/ |
Tests the media library view with contextual filters. | ||||
| MediaLibraryDisplayManager | class | Drupal\media_library | core/ |
The media library form and view display setup. | 2 | |||
| MediaLibraryDisplayModeTest | class | Drupal\Tests\media_library\Functional | core/ |
Tests that the Media Library automatically configures form/view modes. | ||||
| MediaLibraryEditorOpener | class | Drupal\media_library | core/ |
The media library opener for text editors. | 2 | |||
| MediaLibraryFieldWidgetOpener | class | Drupal\media_library | core/ |
The media library opener for field widgets. | 2 | |||
| MediaLibraryFormOverwriteTestHooks | class | Drupal\media_library_form_overwrite_test\Hook | core/ |
Hook implementations for media_library_form_overwrite_test. | ||||
| MediaLibraryHooks | class | Drupal\media_library\Hook | core/ |
Hook implementations for media_library. | ||||
| MediaLibraryImageStyleAccessTest | class | Drupal\Tests\media_library\Functional | core/ |
Tests access to the Media library image style. | ||||
| MediaLibraryInceptionWidget | class | Drupal\media_library_test_widget\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'media_library_inception_widget' widget. | ||||
| MediaLibraryOpenerInterface | interface | Drupal\media_library | core/ |
Defines an interface for media library openers. | 2 | |||
| MediaLibrarySelectForm | class | Drupal\media_library\Plugin\views\field | core/ |
Defines a field that outputs a checkbox and form for selecting media. | 1 | |||
| MediaLibrarySelectFormTest | class | Drupal\Tests\media_library\Unit | core/ |
Tests Drupal\media_library\Plugin\views\field\MediaLibrarySelectForm. | ||||
| MediaLibraryServiceProvider | class | Drupal\media_library | core/ |
Service provider for media library services. | ||||
| MediaLibraryState | class | Drupal\media_library | core/ |
A value object for the media library state. | 9 | |||
| MediaLibraryStateTest | class | Drupal\Tests\media_library\Kernel | core/ |
Tests the media library state value object. | ||||
| MediaLibraryTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests Drupal\ckeditor5\Plugin\CKEditor5Plugin\MediaLibrary. | ||||
| MediaLibraryTestBase | abstract class | Drupal\Tests\media_library\FunctionalJavascript | core/ |
Base class for functional tests of Media Library functionality. | 13 | 1 | ||
| MediaLibraryTestHooks | class | Drupal\media_library_test\Hook | core/ |
Hook implementations for media_library_test. | ||||
| MediaLibraryThemeHooks | class | Drupal\media_library\Hook | core/ |
Hook implementations for media_library. | ||||
| MediaLibraryUiBuilder | class | Drupal\media_library | core/ |
Service which builds the media library. | 5 | 2 | ||
| MediaLibraryViewsHooks | class | Drupal\media_library\Hook | core/ |
Hook implementations for media_library. | ||||
| MediaLibraryWidget | class | Drupal\media_library\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'media_library_widget' widget. | 1 | 2 | ||
| MediaLibraryWidgetTest | class | Drupal\Tests\media_library\Kernel | core/ |
Tests the media library widget. | ||||
| MediaLinkabilityTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests Drupal\ckeditor5\Plugin\CKEditor5Plugin\Media. | ||||
| MediaLinkRelationsTest | class | Drupal\Tests\media\Kernel | core/ |
Tests link relationships for media items. | ||||
| MediaLinkTarget | class | Drupal\media\Entity | core/ |
Provides a Media link target handler. | 1 |
Pagination
- Previous page
- Page 121
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.