Search for media

  1. Search 7.x for media
  2. Search 9.5.x for media
  3. Search 8.9.x for media
  4. Search 11.x for media
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Media class core/modules/media/src/Entity/Media.php Defines the media entity class.
Media class core/modules/media/src/Plugin/views/wizard/Media.php Provides Views creation wizard for Media.
Media class core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Media.php CKEditor 5 Media plugin.

All search results

Title Object type File name Summary
MediaTest::testViewMode function core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php Tests view mode integration.
MediaTestBase class core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php Base class for CKEditor 5 Media integration tests.
MediaTestBase.php file core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php
MediaTestBase::$adminUser property core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php The user to use during testing.
MediaTestBase::$defaultTheme property core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php The theme to install as the default for testing.
MediaTestBase::$host property core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php A host entity with a body field to embed media in.
MediaTestBase::$media property core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php The sample Media entity to embed.
MediaTestBase::$mediaFile property core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php The second sample Media entity to embed used in one of the tests.
MediaTestBase::$modules property core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php Modules to install.
MediaTestBase::assertSourceAttributeSame function core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php Verifies value of an attribute on the downcast <drupal-media> element.
MediaTestBase::getLastPreviewRequestTransferSize function core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php Gets the transfer size of the last preview request.
MediaTestBase::setUp function core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php
MediaTestConstraint class core/modules/media/tests/modules/media_test_source/src/Plugin/Validation/Constraint/MediaTestConstraint.php A media test constraint.
MediaTestConstraint.php file core/modules/media/tests/modules/media_test_source/src/Plugin/Validation/Constraint/MediaTestConstraint.php
MediaTestConstraint::$message property core/modules/media/tests/modules/media_test_source/src/Plugin/Validation/Constraint/MediaTestConstraint.php The default violation message.
MediaTestConstraintValidator class core/modules/media/tests/modules/media_test_source/src/Plugin/Validation/Constraint/MediaTestConstraintValidator.php Validates the MediaTestConstraint.
MediaTestConstraintValidator.php file core/modules/media/tests/modules/media_test_source/src/Plugin/Validation/Constraint/MediaTestConstraintValidator.php
MediaTestConstraintValidator::validate function core/modules/media/tests/modules/media_test_source/src/Plugin/Validation/Constraint/MediaTestConstraintValidator.php
MediaTestOembedServiceProvider class core/modules/media/tests/modules/media_test_oembed/src/MediaTestOembedServiceProvider.php Replaces oEmbed-related media services with testing versions.
MediaTestOembedServiceProvider.php file core/modules/media/tests/modules/media_test_oembed/src/MediaTestOembedServiceProvider.php
MediaTestOembedServiceProvider::alter function core/modules/media/tests/modules/media_test_oembed/src/MediaTestOembedServiceProvider.php Modifies existing service definitions.
MediaThumbnailFormatter class core/modules/media/src/Plugin/Field/FieldFormatter/MediaThumbnailFormatter.php Plugin implementation of the 'media_thumbnail' formatter.
MediaThumbnailFormatter.php file core/modules/media/src/Plugin/Field/FieldFormatter/MediaThumbnailFormatter.php
MediaThumbnailFormatter::$renderer property core/modules/media/src/Plugin/Field/FieldFormatter/MediaThumbnailFormatter.php The renderer service.
MediaThumbnailFormatter::checkAccess function core/modules/media/src/Plugin/Field/FieldFormatter/MediaThumbnailFormatter.php Checks access to the given entity.
MediaThumbnailFormatter::create function core/modules/media/src/Plugin/Field/FieldFormatter/MediaThumbnailFormatter.php Creates an instance of the plugin.
MediaThumbnailFormatter::getMediaThumbnailUrl function core/modules/media/src/Plugin/Field/FieldFormatter/MediaThumbnailFormatter.php Get the URL for the media thumbnail.
MediaThumbnailFormatter::isApplicable function core/modules/media/src/Plugin/Field/FieldFormatter/MediaThumbnailFormatter.php Returns if the formatter can be used for the provided field.
MediaThumbnailFormatter::needsEntityLoad function core/modules/media/src/Plugin/Field/FieldFormatter/MediaThumbnailFormatter.php This has to be overridden because FileFormatterBase expects $item to be
of type \Drupal\file\Plugin\Field\FieldType\FileItem and calls
isDisplayed() which is not in FieldItemInterface.
MediaThumbnailFormatter::settingsForm function core/modules/media/src/Plugin/Field/FieldFormatter/MediaThumbnailFormatter.php Returns a form to configure settings for the formatter.
MediaThumbnailFormatter::settingsSummary function core/modules/media/src/Plugin/Field/FieldFormatter/MediaThumbnailFormatter.php Returns a short summary for the current formatter settings.
MediaThumbnailFormatter::viewElements function core/modules/media/src/Plugin/Field/FieldFormatter/MediaThumbnailFormatter.php Builds a renderable array for a field value.
MediaThumbnailFormatter::__construct function core/modules/media/src/Plugin/Field/FieldFormatter/MediaThumbnailFormatter.php Constructs a MediaThumbnailFormatter object.
MediaThumbnailFormatterTest class core/modules/media/tests/src/Kernel/MediaThumbnailFormatterTest.php @coversDefaultClass \Drupal\media\Plugin\Field\FieldFormatter\MediaThumbnailFormatter
@group media
MediaThumbnailFormatterTest class core/modules/media/tests/src/Functional/FieldFormatter/MediaThumbnailFormatterTest.php @covers \Drupal\media\Plugin\Field\FieldFormatter\MediaThumbnailFormatter
MediaThumbnailFormatterTest.php file core/modules/media/tests/src/Kernel/MediaThumbnailFormatterTest.php
MediaThumbnailFormatterTest.php file core/modules/media/tests/src/Functional/FieldFormatter/MediaThumbnailFormatterTest.php
MediaThumbnailFormatterTest::$defaultTheme property core/modules/media/tests/src/Functional/FieldFormatter/MediaThumbnailFormatterTest.php The theme to install as the default for testing.
MediaThumbnailFormatterTest::$mediaFieldName property core/modules/media/tests/src/Kernel/MediaThumbnailFormatterTest.php Test media reference field name.
MediaThumbnailFormatterTest::$modules property core/modules/media/tests/src/Kernel/MediaThumbnailFormatterTest.php Modules to install.
MediaThumbnailFormatterTest::$testEntityBundleId property core/modules/media/tests/src/Kernel/MediaThumbnailFormatterTest.php Test entity bundle id.
MediaThumbnailFormatterTest::$testEntityTypeId property core/modules/media/tests/src/Kernel/MediaThumbnailFormatterTest.php Test entity type id.
MediaThumbnailFormatterTest::changeMediaReferenceFieldLinkType function core/modules/media/tests/src/Functional/FieldFormatter/MediaThumbnailFormatterTest.php Helper function to change field display.
MediaThumbnailFormatterTest::providerTestSettingsSummary function core/modules/media/tests/src/Kernel/MediaThumbnailFormatterTest.php Data provider for testSettingsSummary().
MediaThumbnailFormatterTest::setUp function core/modules/media/tests/src/Kernel/MediaThumbnailFormatterTest.php
MediaThumbnailFormatterTest::testRender function core/modules/media/tests/src/Functional/FieldFormatter/MediaThumbnailFormatterTest.php Tests the media thumbnail field formatter.
MediaThumbnailFormatterTest::testSettingsSummary function core/modules/media/tests/src/Kernel/MediaThumbnailFormatterTest.php Tests the settings summary.
MediaTranslationTest class core/modules/media/tests/src/Kernel/MediaTranslationTest.php Tests multilingual fields logic.
MediaTranslationTest.php file core/modules/media/tests/src/Kernel/MediaTranslationTest.php
MediaTranslationTest::$modules property core/modules/media/tests/src/Kernel/MediaTranslationTest.php Modules to install.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.