system_retrieve_file

system_retrieve_file($url, $destination = NULL, $managed = FALSE, $replace = FILE_EXISTS_RENAME) Attempts to get a file using Guzzle HTTP client and to store it locally. Parameters string $url: The URL of the file to grab. string $destination: Stream wrapper URI specifying where the file should be placed. If a directory path is provided, the file is saved into that directory under its original name. If the path contains a filename as well, that one will be used instead. If this value is omitte

update_themes_installed

update_themes_installed($themes) Implements hook_themes_installed(). If themes are installed, we invalidate the information of available updates. File core/modules/update/update.module, line 246 Handles updates of Drupal core and contributed projects. Code function update_themes_installed($themes) { // Clear all update module data. update_storage_clear(); }

SessionHandler::$connection

The database connection. Type: \Drupal\Core\Database\Connection File core/lib/Drupal/Core/Session/SessionHandler.php, line 31 Class SessionHandler Default session handler. Namespace Drupal\Core\Session Code protected $connection;

EntityFieldManager::buildBaseFieldDefinitions

protected EntityFieldManager::buildBaseFieldDefinitions($entity_type_id) Builds base field definitions for an entity type. Parameters string $entity_type_id: The entity type ID. Only entity types that implement \Drupal\Core\Entity\FieldableEntityInterface are supported. Return value \Drupal\Core\Field\FieldDefinitionInterface[] An array of field definitions, keyed by field name. Throws \LogicException Thrown if a config entity type is given or if one of the entity keys is flagged as translat

MemoryBackend::deleteAll

public MemoryBackend::deleteAll() Deletes all cache items in a bin. Overrides CacheBackendInterface::deleteAll See also \Drupal\Core\Cache\CacheBackendInterface::invalidateAll() \Drupal\Core\Cache\CacheBackendInterface::delete() \Drupal\Core\Cache\CacheBackendInterface::deleteMultiple() File core/lib/Drupal/Core/Cache/MemoryBackend.php, line 144 Class MemoryBackend Defines a memory cache implementation. Namespace Drupal\Core\Cache Code public function deleteAll() { $this->cache =

KeyValueEntityStorage::loadRevision

public KeyValueEntityStorage::loadRevision($revision_id) Load a specific entity revision. Parameters int|string $revision_id: The revision id. Return value \Drupal\Core\Entity\EntityInterface|null The specified entity revision or NULL if not found. Overrides EntityStorageInterface::loadRevision File core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueEntityStorage.php, line 129 Class KeyValueEntityStorage Provides a key value backend for entities. Namespace Drupal\Core\Entity\KeyValueSt

template_preprocess_field

template_preprocess_field(&$variables, $hook) Prepares variables for field templates. Default template: field.html.twig. Parameters array $variables: An associative array containing: element: A render element representing the field. attributes: A string containing the attributes for the wrapping div. title_attributes: A string containing the attributes for the title. File core/includes/theme.inc, line 1526 The theme system, which controls the output of Drupal. Code function template

ConfigTranslationDeleteForm::buildForm

public ConfigTranslationDeleteForm::buildForm(array $form, FormStateInterface $form_state, RouteMatchInterface $route_match = NULL, $plugin_id = NULL, $langcode = NULL) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides ConfirmFormBase::buildForm File core/modules/config_translation/src/Form/ConfigTranslationDeleteF

file_uri_scheme

file_uri_scheme($uri) Returns the scheme of a URI (e.g. a stream). Deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystem::uriScheme(). Related topics File interface Common file handling functions. File core/includes/file.inc, line 81 API for handling file uploads and server file management. Code function file_uri_scheme($uri) { return \Drupal::service('file_system')->uriScheme($uri); }

FieldStorageDefinitionEventSubscriberTrait::getFieldStorageDefinitionEvents

public static FieldStorageDefinitionEventSubscriberTrait::getFieldStorageDefinitionEvents() Returns the subscribed events. Return value array An array of subscribed event names. See also \Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents() File core/lib/Drupal/Core/Field/FieldStorageDefinitionEventSubscriberTrait.php, line 24 Class FieldStorageDefinitionEventSubscriberTrait Helper methods for FieldStorageDefinitionListenerInterface. Namespace Drupal\Core\