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 10.3.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::testConversion function core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php Tests that `<drupal-media>` is converted into a block element.
MediaTest::testDrupalMedia function core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php Tests the drupal-media tag.
MediaTest::testDrupalMediaStyleInDropdown function core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php Ensures that Drupal Media Styles can be displayed in a dropdown.
MediaTest::testDrupalMediaStyleWithClass function core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php Tests Drupal Media Style with a CSS class.
MediaTest::testEditableCaption function core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php Tests caption editing in the CKEditor widget.
MediaTest::testEntity function core/modules/media/tests/src/Kernel/MediaTest.php Tests various aspects of a media item.
MediaTest::testMediaArbitraryHtml function core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php Tests that arbitrary attributes are allowed via GHS.
MediaTest::testMediaSplitList function core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php Tests adding media to a list does not split the list.
MediaTest::testNameBaseField function core/modules/media/tests/src/Kernel/MediaTest.php Tests the Media "name" base field behavior.
MediaTest::testOnlyDrupalMediaTagProcessed function core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php Tests that only <drupal-media> tags are processed.
MediaTest::testPermissions function core/modules/media/tests/src/Kernel/MediaTest.php Tests permissions based on a media type have the correct permissions.
MediaTest::testTranslationAlt function core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php Tests the CKEditor 5 media plugin loads the translated alt attribute.
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
MediaTestEmbedHooks class core/modules/media/tests/modules/media_test_embed/src/Hook/MediaTestEmbedHooks.php Hook implementations for media_test_embed.
MediaTestEmbedHooks.php file core/modules/media/tests/modules/media_test_embed/src/Hook/MediaTestEmbedHooks.php
MediaTestEmbedHooks::entityAccess function core/modules/media/tests/modules/media_test_embed/src/Hook/MediaTestEmbedHooks.php Implements hook_entity_access().
MediaTestEmbedHooks::entityViewAlter function core/modules/media/tests/modules/media_test_embed/src/Hook/MediaTestEmbedHooks.php Implements hook_entity_view_alter().
MediaTestOembedHooks class core/modules/media/tests/modules/media_test_oembed/src/Hook/MediaTestOembedHooks.php Hook implementations for media_test_oembed.
MediaTestOembedHooks.php file core/modules/media/tests/modules/media_test_oembed/src/Hook/MediaTestOembedHooks.php
MediaTestOembedHooks::oembedResourceUrlAlter function core/modules/media/tests/modules/media_test_oembed/src/Hook/MediaTestOembedHooks.php Implements hook_oembed_resource_url_alter().
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.

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