Search for source

  1. Search 7.x for source
  2. Search 9.5.x for source
  3. Search 8.9.x for source
  4. Search 11.x for source
  5. Other projects
Title Object type File name Summary
locale_translation_source_check_file function core/modules/locale/locale.translation.inc Checks whether a po file exists in the local filesystem.
LOCALE_TRANSLATION_SOURCE_COMPARE_EQ constant core/modules/locale/locale.translation.inc Comparison result of source files timestamps.
LOCALE_TRANSLATION_SOURCE_COMPARE_GT constant core/modules/locale/locale.translation.inc Comparison result of source files timestamps.
LOCALE_TRANSLATION_SOURCE_COMPARE_LT constant core/modules/locale/locale.translation.inc Comparison result of source files timestamps.
locale_translation_use_remote_source function core/modules/locale/locale.module Checks whether remote translation sources are used.
LOCALE_TRANSLATION_USE_SOURCE_LOCAL constant core/modules/locale/locale.module Translation update mode: Use local files only.
LOCALE_TRANSLATION_USE_SOURCE_REMOTE_AND_LOCAL constant core/modules/locale/locale.module Translation update mode: Use both remote and local files.
media.oembed.resource_fetcher service core/modules/media/media.services.yml Drupal\media\OEmbed\ResourceFetcher
Media::getSource function core/modules/media/src/Entity/Media.php Returns the media source.
Media::hasSourceFieldChanged function core/modules/media/src/Entity/Media.php Determines if the source field value has changed.
MediaEmbed::getMediaImageSourceField function core/modules/media/src/Plugin/Filter/MediaEmbed.php Get image field from source config.
MediaInterface::getSource function core/modules/media/src/MediaInterface.php Returns the media source.
MediaMappingsConstraintValidatorTest::testMediaMappingSource function core/modules/media/tests/src/Kernel/MediaMappingsConstraintValidatorTest.php @covers ::validate
MediaRequirementsTest::testMissingSourceFieldDefinition function core/modules/media/tests/src/Functional/MediaRequirementsTest.php Tests that the requirements check can handle a missing source field.
MediaResourceTestBase class core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php
MediaResourceTestBase.php file core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php
MediaResourceTestBase::$entity property core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php
MediaResourceTestBase::$entityTypeId property core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php The tested entity type.
MediaResourceTestBase::$modules property core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php Modules to install.
MediaResourceTestBase::$patchProtectedFieldNames property core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php The fields that are protected against modification during PATCH requests.
MediaResourceTestBase::createEntity function core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php Creates the entity to be tested.
MediaResourceTestBase::getExpectedCacheContexts function core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
MediaResourceTestBase::getExpectedNormalizedEntity function core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php Returns the expected normalization of the entity.
MediaResourceTestBase::getExpectedNormalizedFileEntity function core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php Gets the expected file entity.
MediaResourceTestBase::getExpectedUnauthorizedAccessMessage function core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php Return the expected error message.
MediaResourceTestBase::getExpectedUnauthorizedEntityAccessCacheability function core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php The cacheability of unauthorized 'view' entity access.
MediaResourceTestBase::getNormalizedPatchEntity function core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php Returns the normalized PATCH entity.
MediaResourceTestBase::getNormalizedPostEntity function core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php Returns the normalized POST entity.
MediaResourceTestBase::setUp function core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php
MediaResourceTestBase::setUpAuthorization function core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php Sets up the necessary authorization.
MediaResourceTestBase::testPost function core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php Tests a POST request for an entity, plus edge cases to ensure good DX.
MediaResourceTestBase::uploadFile function core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php Tests the 'file_upload' REST resource plugin.
MediaSource class core/modules/media/src/Annotation/MediaSource.php Defines a media source plugin annotation object.
MediaSource class core/modules/media/src/Attribute/MediaSource.php Defines a MediaSource attribute.
MediaSource.php file core/modules/media/src/Attribute/MediaSource.php
MediaSource.php file core/modules/media/src/Annotation/MediaSource.php
MediaSource::$allowed_field_types property core/modules/media/src/Annotation/MediaSource.php The field types that can be used as a source field for this media source.
MediaSource::$default_name_metadata_attribute property core/modules/media/src/Annotation/MediaSource.php The metadata attribute name to provide the default name.
MediaSource::$default_thumbnail_filename property core/modules/media/src/Annotation/MediaSource.php A filename for the default thumbnail.
MediaSource::$description property core/modules/media/src/Annotation/MediaSource.php A brief description of the media source.
MediaSource::$forms property core/modules/media/src/Annotation/MediaSource.php The classes used to define media source-specific forms.
MediaSource::$id property core/modules/media/src/Annotation/MediaSource.php The plugin ID.
MediaSource::$label property core/modules/media/src/Annotation/MediaSource.php The human-readable name of the media source.
MediaSource::$thumbnail_alt_metadata_attribute property core/modules/media/src/Annotation/MediaSource.php (optional) The metadata attribute name to provide the thumbnail alt.
MediaSource::$thumbnail_height_metadata_attribute property core/modules/media/src/Annotation/MediaSource.php The metadata attribute name to provide the thumbnail height.
MediaSource::$thumbnail_title_metadata_attribute property core/modules/media/src/Annotation/MediaSource.php (optional) The metadata attribute name to provide the thumbnail title.
MediaSource::$thumbnail_uri_metadata_attribute property core/modules/media/src/Annotation/MediaSource.php The metadata attribute name to provide the thumbnail URI.
MediaSource::$thumbnail_width_metadata_attribute property core/modules/media/src/Annotation/MediaSource.php The metadata attribute name to provide the thumbnail width.
MediaSource::__construct function core/modules/media/src/Attribute/MediaSource.php Constructs a new MediaSource attribute.
MediaSourceAudioVideoTest class core/modules/media/tests/src/FunctionalJavascript/MediaSourceAudioVideoTest.php Tests the Audio and Video media sources.

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