Classes, traits, and interfaces - 8.9.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 1511
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
MediaSourceImageTest | class | Drupal\Tests\media\FunctionalJavascript | core/ |
Tests the image media source. | ||||
MediaSourceInterface | interface | Drupal\media | core/ |
Defines the interface for media source plugins. | 3 | 1 | ||
MediaSourceManager | class | Drupal\media | core/ |
Manages media source plugins. | 2 | |||
MediaSourceOEmbedVideoTest | class | Drupal\Tests\media\FunctionalJavascript | core/ |
Tests the oembed:video media source. | ||||
MediaSourceTest | class | Drupal\Tests\media\Kernel | core/ |
Tests media source plugins related logic. | ||||
MediaSourceTestBase | abstract class | Drupal\Tests\media\FunctionalJavascript | core/ |
Base class for media source tests. | 4 | |||
MediaStandardProfileTest | class | Drupal\Tests\media\FunctionalJavascript | core/ |
Basic tests for Media configuration in the standard profile. | ||||
MediaStorage | class | Drupal\media | core/ |
Defines the storage handler class for media. | ||||
MediaTemplateSuggestionsTest | class | Drupal\Tests\media\Functional | core/ |
Tests media template suggestions. | ||||
MediaTest | class | Drupal\Tests\media\Kernel | core/ |
Tests Media. | ||||
MediaTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "Media" content entity type. | ||||
MediaTestConstraint | class | Drupal\media_test_source\Plugin\Validation\Constraint | core/ |
A media test constraint. | ||||
MediaTestConstraintValidator | class | Drupal\media_test_source\Plugin\Validation\Constraint | core/ |
Validates the MediaTestConstraint. | ||||
MediaTestOembedServiceProvider | class | Drupal\media_test_oembed | core/ |
Replaces oEmbed-related media services with testing versions. | ||||
MediaThumbnailFormatter | class | Drupal\media\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'media_thumbnail' formatter. | ||||
MediaTranslationTest | class | Drupal\Tests\media\Kernel | core/ |
Tests multilanguage fields logic. | ||||
MediaTranslationUITest | class | Drupal\Tests\media\Functional | core/ |
Tests the Media Translation UI. | ||||
MediaType | class | Drupal\media\Entity | core/ |
Defines the Media type configuration entity. | 21 | |||
MediaTypeAccessControlHandler | class | Drupal\media | core/ |
Defines the access control handler for the "Media Type" entity type. | ||||
MediaTypeCreationTest | class | Drupal\Tests\media\FunctionalJavascript | core/ |
Tests the media type creation. | ||||
MediaTypeCreationTest | class | Drupal\Tests\media\Functional | core/ |
Ensures that media UI works correctly without JavaScript. | ||||
MediaTypeCreationTrait | trait | Drupal\Tests\media\Traits | core/ |
Provides methods to create a media type from given values. | 20 | |||
MediaTypeDeleteConfirmForm | class | Drupal\media\Form | core/ |
Provides a form for media type deletion. | ||||
MediaTypeForm | class | Drupal\media | core/ |
Form controller for media type forms. | 1 | |||
MediaTypeHalJsonAnonTest | class | Drupal\Tests\media\Functional\Hal | core/ |
@group hal | ||||
MediaTypeHalJsonBasicAuthTest | class | Drupal\Tests\media\Functional\Hal | core/ |
@group hal | ||||
MediaTypeHalJsonCookieTest | class | Drupal\Tests\media\Functional\Hal | core/ |
@group hal | ||||
MediaTypeInterface | interface | Drupal\media | core/ |
Provides an interface defining a media type entity. | 1 | 14 | ||
MediaTypeJsonAnonTest | class | Drupal\Tests\media\Functional\Rest | core/ |
@group rest | ||||
MediaTypeJsonBasicAuthTest | class | Drupal\Tests\media\Functional\Rest | core/ |
@group rest | ||||
MediaTypeJsonCookieTest | class | Drupal\Tests\media\Functional\Rest | core/ |
@group rest | ||||
MediaTypeListBuilder | class | Drupal\media | core/ |
Provides a listing of media types. | ||||
MediaTypeResourceTestBase | abstract class | Drupal\Tests\media\Functional\Rest | core/ |
10 | 4 | |||
MediaTypeResourceTestBase | in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\media\Functional\Rest\MediaTypeResourceTestBase instead. |
abstract class | Drupal\Tests\rest\Functional\EntityResource\MediaType | core/ |
||||
MediaTypeTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "MediaType" config entity type. | ||||
MediaTypeXmlAnonTest | class | Drupal\Tests\media\Functional\Rest | core/ |
@group rest | ||||
MediaTypeXmlBasicAuthTest | class | Drupal\Tests\media\Functional\Rest | core/ |
@group rest | ||||
MediaTypeXmlCookieTest | class | Drupal\Tests\media\Functional\Rest | core/ |
@group rest | ||||
MediaUiFunctionalTest | class | Drupal\Tests\media\Functional | core/ |
Ensures that media UI works correctly. | ||||
MediaUiJavascriptTest | class | Drupal\Tests\media\FunctionalJavascript | core/ |
Ensures that media UI works correctly. | ||||
MediaUpdateTest | class | Drupal\Tests\media\Functional\Update | core/ |
Tests that media settings are properly updated during database updates. | ||||
MediaViewsData | class | Drupal\media | core/ |
Provides the Views data for the media entity type. | ||||
MediaViewsWizardTest | class | Drupal\Tests\media\FunctionalJavascript | core/ |
Tests the media entity type integration into the wizard. | ||||
MediaXmlAnonTest | class | Drupal\Tests\media\Functional\Rest | core/ |
@group rest | ||||
MediaXmlBasicAuthTest | class | Drupal\Tests\media\Functional\Rest | core/ |
@group rest | ||||
MediaXmlCookieTest | class | Drupal\Tests\media\Functional\Rest | core/ |
@group rest | ||||
Memory | class | Drupal\Core\Queue | core/ |
Static queue implementation. | 1 | 1 | ||
MemoryBackend | class | Drupal\Core\Flood | core/ |
Defines the memory flood backend. This is used for testing. | 1 | |||
MemoryBackend | class | Drupal\Core\Cache | core/ |
Defines a memory cache implementation. | 3 | 12 | ||
MemoryBackendFactory | class | Drupal\Core\Cache | core/ |
2 |
Pagination
- Previous page
- Page 103
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.