DatabaseStorageExpirable

Defines a default key/value store implementation for expiring items. This key/value store implementation uses the database to store key/value data with an expire date. Hierarchy class \Drupal\Core\KeyValueStore\StorageBase implements KeyValueStoreInterfaceclass \Drupal\Core\KeyValueStore\DatabaseStorage uses DependencySerializationTraitclass \Drupal\Core\KeyValueStore\DatabaseStorageExpirable implements KeyValueStoreExpirableInterface File core/lib/Drupal/Core/KeyValueStore/DatabaseStorage

template_preprocess_locale_translation_last_check

template_preprocess_locale_translation_last_check(array &$variables) Prepares variables for most recent translation update templates. Displays the last time we checked for locale update data. In addition to properly formatting the given timestamp, this function also provides a "Check manually" link that refreshes the available update and redirects back to the same page. Default template: locale-translation-last-check.html.twig. Parameters array $variables: An associative array containing:

_content_translation_form_language_content_settings_form_alter

_content_translation_form_language_content_settings_form_alter(array &$form, FormStateInterface $form_state) (proxied) Implements hook_form_FORM_ID_alter(). File core/modules/content_translation/content_translation.admin.inc, line 79 The content translation administration forms. Code function _content_translation_form_language_content_settings_form_alter(array &$form, FormStateInterface $form_state) { // Inject into the content language settings the translation settings if the //

LinkGeneratorInterface::generate

public LinkGeneratorInterface::generate($text, Url $url) Renders a link to a URL. Examples: $link_generator = \Drupal::service('link_generator'); $installer_url = \Drupal\Core\Url::fromUri('base://core/install.php'); $installer_link = $link_generator->generate($text, $installer_url); $external_url = \Drupal\Core\Url::fromUri('http://example.com', ['query' => ['foo' => 'bar']]); $external_link = $link_generator->generate($text, $external_url); $internal_url = \Drupal\Core\Url::fromRo

ConfigTranslationEntityListBuilder

Defines the configuration translation list builder for entities. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityListBuilder implements EntityHandlerInterface, EntityListBuilderInterfaceclass \Drupal\Core\Config\Entity\ConfigEntityListBuilderclass \Drupal\config_translation\Controller\ConfigTranslationEntityListBuilder implements ConfigTranslationEntityListBuilderInterface File core/modules/conf

Query

Defines the entity query for entities stored in a key value backend. Hierarchy class \Drupal\Core\Entity\Query\QueryBase implements QueryInterfaceclass \Drupal\Core\Entity\KeyValueStore\Query\Query File core/lib/Drupal/Core/Entity/KeyValueStore/Query/Query.php, line 12 Namespace Drupal\Core\Entity\KeyValueStore\Query Members Name Modifiers Type Description Query::$keyValueFactory protected property The key value factory. Query::execute public function Execute th

ModuleHandler::getModule

public ModuleHandler::getModule($name) Returns a module extension object from the currently active modules list. Parameters string $name: The name of the module to return. Return value \Drupal\Core\Extension\Extension An extension object. Throws \InvalidArgumentException Thrown when the requested module does not exist. Overrides ModuleHandlerInterface::getModule File core/lib/Drupal/Core/Extension/ModuleHandler.php, line 171 Class ModuleHandler Class that manages modules in a Drupal ins

ImportForm::$file

Uploaded file entity. Type: \Drupal\file\Entity\File File core/modules/locale/src/Form/ImportForm.php, line 22 Class ImportForm Form constructor for the translation import screen. Namespace Drupal\locale\Form Code protected $file;

ConfigImporter::reset

public ConfigImporter::reset() Resets the storage comparer and processed list. Return value \Drupal\Core\Config\ConfigImporter The ConfigImporter instance. File core/lib/Drupal/Core/Config/ConfigImporter.php, line 236 Class ConfigImporter Defines a configuration importer. Namespace Drupal\Core\Config Code public function reset() { $this->storageComparer->reset(); // Empty all the lists. foreach ($this->storageComparer->getAllCollectionNames() as $collection) { $t

file_get_file_references

file_get_file_references(FileInterface $file, FieldDefinitionInterface $field = NULL, $age = EntityStorageInterface::FIELD_LOAD_REVISION, $field_type = 'file') Retrieves a list of references to a file. Parameters \Drupal\file\FileInterface $file: A file entity. \Drupal\Core\Field\FieldDefinitionInterface|null $field: (optional) A field definition to be used for this check. If given, limits the reference check to the given field. Defaults to NULL. int $age: (optional) A constant that specifies