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 10.3.x for source
  5. Search 11.x for source
  6. Other projects
Title Object type File name Summary
LocaleSource::loadSources function core/modules/locale/src/LocaleSource.php Loads cached translation sources containing current translation status.
LocaleSource::LOCAL_FILE_HASH_ALGO constant core/modules/locale/src/LocaleSource.php The hash algorithm used to calculate the hash of the local file.
LocaleSource::saveSource function core/modules/locale/src/LocaleSource.php Saves the status of translation sources in static cache.
LocaleSource::sourceBuild function core/modules/locale/src/LocaleSource.php Builds abstract translation source.
LocaleSource::sourceCheckFile function core/modules/locale/src/LocaleSource.php Checks whether a po file exists in the local filesystem.
LocaleSource::updateLastChecked function core/modules/locale/src/LocaleSource.php Updates the last checked timestamp.
LocaleSource::__construct function core/modules/locale/src/LocaleSource.php
LocaleStringTest::buildSourceString function core/modules/locale/tests/src/Kernel/LocaleStringTest.php Creates random source string object.
LocaleTranslationChangeProjectVersionTest::testUpdateImportSourceRemote function core/modules/locale/tests/src/Functional/LocaleTranslationChangeProjectVersionTest.php Tests update translations when project version changes.
LocaleTranslationDownloadTest::testUpdateImportSourceRemote function core/modules/locale/tests/src/Functional/LocaleTranslationDownloadTest.php Tests translation download from remote sources.
LocaleTranslationSource class core/modules/locale/src/LocaleTranslationSource.php Provides source and translation status information for a project/langcode.
LocaleTranslationSource.php file core/modules/locale/src/LocaleTranslationSource.php
LocaleTranslationSource::$core property core/modules/locale/src/LocaleTranslationSource.php The core for the Server pattern, always "all".
LocaleTranslationSource::$files property core/modules/locale/src/LocaleTranslationSource.php List of locale file object.
LocaleTranslationSource::$name property core/modules/locale/src/LocaleTranslationSource.php The project name.
LocaleTranslationSource::$server_pattern property core/modules/locale/src/LocaleTranslationSource.php The server pattern.
LocaleTranslationSource::$version property core/modules/locale/src/LocaleTranslationSource.php The version.
LocaleTranslationSource::fromProject function core/modules/locale/src/LocaleTranslationSource.php Create a LocaleTranslationSource object from a project.
LocaleTranslationSource::__construct function core/modules/locale/src/LocaleTranslationSource.php
LocaleUpdateTest::testUpdateImportSourceLocal function core/modules/locale/tests/src/Functional/LocaleUpdateTest.php Tests translation import from local sources.
LocaleUpdateTest::testUpdateImportSourceRemote function core/modules/locale/tests/src/Functional/LocaleUpdateTest.php Tests translation import from remote sources.
locale_post_update_clear_sources function core/modules/locale/locale.post_update.php Clear locale source information.
locale_translation_build_sources function core/modules/locale/locale.translation.inc Build translation sources.
locale_translation_download_source function core/modules/locale/locale.batch.inc Downloads a translation file from a remote server.
locale_translation_load_sources function core/modules/locale/locale.translation.inc Loads cached translation sources containing current translation status.
locale_translation_source_build function core/modules/locale/locale.translation.inc Builds abstract translation source.
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.
MediaLibraryFormOverwriteTestHooks::mediaSourceInfoAlter function core/modules/media_library/tests/modules/media_library_form_overwrite_test/src/Hook/MediaLibraryFormOverwriteTestHooks.php Implements hook_media_source_info_alter().
MediaLibraryHooks::mediaSourceInfoAlter function core/modules/media_library/src/Hook/MediaLibraryHooks.php Implements hook_media_source_info_alter().
MediaMappingsConstraintValidatorTest::testMediaMappingSource function core/modules/media/tests/src/Kernel/MediaMappingsConstraintValidatorTest.php Tests media mapping source.
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 Resource test base for the media entity.
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::doTestPost function core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php Tests a POST request for an entity, plus edge cases to ensure good DX.

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