LocalReadOnlyStream::getType

public static LocalReadOnlyStream::getType() Returns the type of stream wrapper. Return value int Overrides LocalStream::getType File core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php, line 21 Class LocalReadOnlyStream Defines a read-only Drupal stream wrapper base class for local files. Namespace Drupal\Core\StreamWrapper Code public static function getType() { return StreamWrapperInterface::READ_VISIBLE | StreamWrapperInterface::LOCAL; }

LocalReadOnlyStream

Defines a read-only Drupal stream wrapper base class for local files. This class extends the complete stream wrapper implementation in LocalStream. URIs such as "public://example.txt" are expanded to a normal filesystem path such as "sites/default/files/example.txt" and then PHP filesystem functions are invoked. Drupal\Core\StreamWrapper\LocalReadOnlyStream implementations need to implement at least the getDirectoryPath() and getExternalUrl() methods. Hierarchy class \Drupal\Core\StreamWrapper\

locale_uninstall

locale_uninstall() Implements hook_uninstall(). File core/modules/locale/locale.install, line 26 Install, update, and uninstall functions for the Locale module. Code function locale_uninstall() { $config = \Drupal::config('locale.settings'); // Delete all JavaScript translation files. $locale_js_directory = 'public://' . $config->get('javascript.directory'); if (is_dir($locale_js_directory)) { $locale_javascripts = \Drupal::state()->get('locale.translation.javascript') ? :

LOCALE_TRANSLATION_USE_SOURCE_REMOTE_AND_LOCAL

Translation update mode: Use both remote and local files. When checking for available translation updates, both local and remote files will be checked. File core/modules/locale/locale.module, line 95 Enables the translation of the user interface to languages other than English. Code const LOCALE_TRANSLATION_USE_SOURCE_REMOTE_AND_LOCAL = 'remote_and_local';

LOCALE_TRANSLATION_USE_SOURCE_LOCAL

Translation update mode: Use local files only. When checking for available translation updates, only local files will be used. Any remote translation file will be ignored. Also custom modules and themes which have set a "server pattern" to use a remote translation server will be ignored. File core/modules/locale/locale.module, line 87 Enables the translation of the user interface to languages other than English. Code const LOCALE_TRANSLATION_USE_SOURCE_LOCAL = 'local';

locale_translation_use_remote_source

locale_translation_use_remote_source() Checks whether remote translation sources are used. Return value bool Returns TRUE if remote translations sources should be taken into account when checking or importing translation files, FALSE otherwise. File core/modules/locale/locale.module, line 1018 Enables the translation of the user interface to languages other than English. Code function locale_translation_use_remote_source() { return \Drupal::config('locale.settings')->get('translation.us

locale_translation_update_file_history

locale_translation_update_file_history($file) Updates the {locale_file} table. Parameters object $file: Object representing the file just imported. Return value int FALSE on failure. Otherwise SAVED_NEW or SAVED_UPDATED. File core/modules/locale/locale.module, line 839 Enables the translation of the user interface to languages other than English. Code function locale_translation_update_file_history($file) { $status = db_merge('locale_file') ->key(array( 'project' => $file-

LOCALE_TRANSLATION_STATUS_TTL

The number of seconds that the translations status entry should be considered. File core/modules/locale/locale.module, line 107 Enables the translation of the user interface to languages other than English. Code const LOCALE_TRANSLATION_STATUS_TTL = 600;

locale_translation_status_save

locale_translation_status_save($project, $langcode, $type, $data) Saves the status of translation sources in static cache. Parameters string $project: Machine readable project name. string $langcode: Language code. string $type: Type of data to be stored. array $data: File object also containing timestamp when the translation is last updated. File core/modules/locale/locale.module, line 919 Enables the translation of the user interface to languages other than English. Code function locale_tr

locale_translation_status_delete_projects

locale_translation_status_delete_projects($projects) Delete project entries from the status cache. Parameters array $projects: Project name(s) to be deleted from the cache. File core/modules/locale/locale.module, line 992 Enables the translation of the user interface to languages other than English. Code function locale_translation_status_delete_projects($projects) { $status = locale_translation_get_status(); foreach ($status as $project => $languages) { if (in_array($project, $p