DatabaseBackend::normalizeCid

protected DatabaseBackend::normalizeCid($cid) Normalizes a cache ID in order to comply with database limitations. Parameters string $cid: The passed in cache ID. Return value string An ASCII-encoded cache ID that is at most 255 characters long. File core/lib/Drupal/Core/Cache/DatabaseBackend.php, line 403 Class DatabaseBackend Defines a default cache implementation. Namespace Drupal\Core\Cache Code protected function normalizeCid($cid) { // Nothing to do if the ID is a US ASCII str

progress-bar.html.twig

Default theme implementation for a progress bar. Note that the core Batch API uses this only for non-JavaScript batch jobs. Available variables: label: The label of the working task. percent: The percentage of the progress. message: A string containing information to be displayed. File core/modules/system/templates/progress-bar.html.twig Related topics Theme system overview Functions and templates for the user interface that themes can override.

ThemeInstaller::$configInstaller

Type: \Drupal\Core\Config\ConfigInstallerInterface File core/lib/Drupal/Core/Extension/ThemeInstaller.php, line 27 Class ThemeInstaller Manages theme installation/uninstallation. Namespace Drupal\Core\Extension Code protected $configInstaller;

MenuTreeParameters::$maxDepth

The maximum depth of menu links in the resulting tree relative to the root. Type: int|null File core/lib/Drupal/Core/Menu/MenuTreeParameters.php, line 43 Class MenuTreeParameters Provides a value object to model menu tree parameters. Namespace Drupal\Core\Menu Code public $maxDepth = NULL;

StorageComparer::hasChanges

public StorageComparer::hasChanges() Checks if there are any operations with changes to process. Until the changelist has been calculated this will always be FALSE. Return value bool TRUE if there are changes to process and FALSE if not. Overrides StorageComparerInterface::hasChanges See also \Drupal\Core\Config\StorageComparerInterface::createChangelist() File core/lib/Drupal/Core/Config/StorageComparer.php, line 378 Class StorageComparer Defines a config storage comparer. Namespace

TypedData::getRoot

public TypedData::getRoot() Returns the root of the typed data tree. Returns the root data for a tree of typed data objects; e.g. for an entity field item the root of the tree is its parent entity object. Return value \Drupal\Core\TypedData\TraversableTypedDataInterface The root data structure, either complex data or a list. Overrides TypedDataInterface::getRoot File core/lib/Drupal/Core/TypedData/TypedData.php, line 165 Class TypedData The abstract base class for typed data. Namespace

FormElementHelper::getElementByName

public static FormElementHelper::getElementByName($name, array $form) Retrieves a form element. Parameters string $name: The name of the form element. If the #parents property of your form element is ['foo', 'bar', 'baz'] then the name is 'foo][bar][baz'. array $form: An associative array containing the structure of the form. Return value array The form element. File core/lib/Drupal/Core/Form/FormElementHelper.php, line 24 Class FormElementHelper Provides common functionality for form el

RouteBuildEvent::$routeCollection

The route collection. Type: \Symfony\Component\Routing\RouteCollection File core/lib/Drupal/Core/Routing/RouteBuildEvent.php, line 18 Class RouteBuildEvent Represents route building information as event. Namespace Drupal\Core\Routing Code protected $routeCollection;

rdf_preprocess_image

rdf_preprocess_image(&$variables) Implements hook_preprocess_HOOK() for image.html.twig. File core/modules/rdf/rdf.module, line 572 Enables semantically enriched output for Drupal sites in the form of RDFa. Code function rdf_preprocess_image(&$variables) { // Adds the RDF type for image. We cannot use the usual entity-based mapping // to get 'foaf:Image' because image does not have its own entity type or // bundle. $variables['attributes']['typeof'] = array('foaf:Image'); }

admin-page.html.twig

Default theme implementation for an administrative page. Available variables: system_compact_link: Themed link to toggle compact view. containers: An list of administrative blocks keyed by position: left or right. Contains: blocks: A list of blocks within a container. See also template_preprocess_admin_page() File core/modules/system/templates/admin-page.html.twig Related topics Theme system overview Functions and templates for the user interface that themes can override.