_update_manager_unique_identifier

_update_manager_unique_identifier() Returns a short unique identifier for this Drupal installation. Return value An eight character string uniquely identifying this Drupal installation. File core/modules/update/update.module, line 652 Handles updates of Drupal core and contributed projects. Code function _update_manager_unique_identifier() { $id = &drupal_static(__FUNCTION__, ''); if (empty($id)) { $id = substr(hash('sha256', Settings::getHashSalt()), 0, 8); } return $id; }

_color_rewrite_stylesheet

_color_rewrite_stylesheet($theme, &$info, &$paths, $palette, $style) Rewrites the stylesheet to match the colors in the palette. File core/modules/color/color.module, line 512 Allows users to change the color scheme of themes. Code function _color_rewrite_stylesheet($theme, &$info, &$paths, $palette, $style) { // Prepare color conversion table. $conversion = $palette; foreach ($conversion as $k => $v) { $conversion[$k] = Unicode::strtolower($v); } $default = c

ImageToolkitInterface::setSource

public ImageToolkitInterface::setSource($source) Sets the source path of the image file. Parameters string $source: The source path of the image file. Return value \Drupal\Core\ImageToolkit\ImageToolkitInterface An instance of the current toolkit object. Throws \BadMethodCallException After being set initially, the source image cannot be changed. File core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php, line 61 Class ImageToolkitInterface Defines an interface for image toolkits.

DbUpdateController::batchFinished

public static DbUpdateController::batchFinished($success, $results, $operations) Finishes the update process and stores the results for eventual display. After the updates run, all caches are flushed. The update results are stored into the session (for example, to be displayed on the update results page in update.php). Additionally, if the site was off-line, now that the update process is completed, the site is set back online. Parameters $success: Indicate that the batch API tasks were all co

StatementPrefetch::key

public StatementPrefetch::key() File core/lib/Drupal/Core/Database/StatementPrefetch.php, line 321 Class StatementPrefetch An implementation of StatementInterface that prefetches all data. Namespace Drupal\Core\Database Code public function key() { return $this->currentKey; }

StatementPrefetch::$currentKey

The key of the current row. Type: int File core/lib/Drupal/Core/Database/StatementPrefetch.php, line 60 Class StatementPrefetch An implementation of StatementInterface that prefetches all data. Namespace Drupal\Core\Database Code protected $currentKey = NULL;

EntityLastInstalledSchemaRepository::getLastInstalledDefinition

public EntityLastInstalledSchemaRepository::getLastInstalledDefinition($entity_type_id) Gets the entity type definition in its most recently installed state. During the application lifetime, entity type definitions can change. For example, updated code can be deployed. The getDefinition() method will always return the definition as determined by the current codebase. This method, however, returns what the definition was when the last time that one of the \Drupal\Core\Entity\EntityTypeListenerIn

BubbleableMetadata::createFromRenderArray

public static BubbleableMetadata::createFromRenderArray(array $build) Creates a bubbleable metadata object with values taken from a render array. Parameters array $build: A render array. Return value static Overrides CacheableMetadata::createFromRenderArray File core/lib/Drupal/Core/Render/BubbleableMetadata.php, line 65 Class BubbleableMetadata Value object used for bubbleable rendering metadata. Namespace Drupal\Core\Render Code public static function createFromRenderArray(array $b

AccessResultAllowed::isAllowed

public AccessResultAllowed::isAllowed() Overrides AccessResult::isAllowed See also \Drupal\Core\Access\AccessResultAllowed File core/lib/Drupal/Core/Access/AccessResultAllowed.php, line 13 Class AccessResultAllowed Value object indicating an allowed access result, with cacheability metadata. Namespace Drupal\Core\Access Code public function isAllowed() { return TRUE; }

CommentController::commentPermalink

public CommentController::commentPermalink(Request $request, CommentInterface $comment) Redirects comment links to the correct page depending on comment settings. Since comments are paged there is no way to guarantee which page a comment appears on. Comment paging and threading settings may be changed at any time. With threaded comments, an individual comment may move between pages as comments can be added either before or after it in the overall discussion. Therefore we use a central routing f