UserCacheContextBase::$user

The account object. Type: \Drupal\Core\Session\AccountInterface File core/lib/Drupal/Core/Cache/Context/UserCacheContextBase.php, line 21 Class UserCacheContextBase Base class for user-based cache contexts. Namespace Drupal\Core\Cache\Context Code protected $user;

LanguageManager::getUnitedNationsLanguageList

public static LanguageManager::getUnitedNationsLanguageList() The 6 official languages used at the United Nations. This list is based on http://www.un.org/en/sections/about-un/official-languages/index.html and it uses the same format as getStandardLanguageList(). Return value array An array with language codes as keys, and English and native language names as values. File core/lib/Drupal/Core/Language/LanguageManager.php, line 342 Class LanguageManager Class responsible for providing lang

EntityAutocomplete::getInfo

public EntityAutocomplete::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides Textfield::getInfo File core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php, line 27 Class EntityAutocomplete Provides an entity autocomplete form element. Namespace Drupal\Core\Enti

FileStorage::rename

public FileStorage::rename($name, $new_name) Renames a configuration object in the storage. Parameters string $name: The name of a configuration object to rename. string $new_name: The new name of a configuration object. Return value bool TRUE on success, FALSE otherwise. Overrides StorageInterface::rename File core/lib/Drupal/Core/Config/FileStorage.php, line 185 Class FileStorage Defines the file storage. Namespace Drupal\Core\Config Code public function rename($name, $new_name) {

ContentTranslationMetadataWrapper::setOutdated

public ContentTranslationMetadataWrapper::setOutdated($outdated) Sets the translation outdated status. Parameters bool $outdated: TRUE if the translation is outdated, FALSE otherwise. Return value $this Overrides ContentTranslationMetadataWrapperInterface::setOutdated File core/modules/content_translation/src/ContentTranslationMetadataWrapper.php, line 65 Class ContentTranslationMetadataWrapper Base class for content translation metadata wrappers. Namespace Drupal\content_translation

MessageInterface::getContactForm

public MessageInterface::getContactForm() Returns the form this contact message belongs to. Return value \Drupal\contact\ContactFormInterface The contact form entity. File core/modules/contact/src/MessageInterface.php, line 18 Class MessageInterface Provides an interface defining a contact message entity. Namespace Drupal\contact Code public function getContactForm();

CacheableMetadata::setCacheMaxAge

public CacheableMetadata::setCacheMaxAge($max_age) Sets the maximum age (in seconds). Defaults to Cache::PERMANENT Parameters int $max_age: The max age to associate. Return value $this Throws \InvalidArgumentException If a non-integer value is supplied. File core/lib/Drupal/Core/Cache/CacheableMetadata.php, line 74 Class CacheableMetadata Defines a generic class for passing cacheability metadata. Namespace Drupal\Core\Cache Code public function setCacheMaxAge($max_age) { if (!is_i

system_theme_suggestions_region

system_theme_suggestions_region(array $variables) Implements hook_theme_suggestions_HOOK(). File core/modules/system/system.module, line 302 Configuration system that lets administrators modify the workings of the site. Code function system_theme_suggestions_region(array $variables) { $suggestions = array(); if (!empty($variables['elements']['#region'])) { $suggestions[] = 'region__' . $variables['elements']['#region']; } return $suggestions; }

CachedStorage::getCacheKey

protected CachedStorage::getCacheKey($name) Returns a cache key for a configuration name using the collection. Parameters string $name: The configuration name. Return value string The cache key for the configuration name. File core/lib/Drupal/Core/Config/CachedStorage.php, line 266 Class CachedStorage Defines the cached storage. Namespace Drupal\Core\Config Code protected function getCacheKey($name) { return $this->getCollectionPrefix() . $name; }

EntityViewBuilderInterface::view

public EntityViewBuilderInterface::view(EntityInterface $entity, $view_mode = 'full', $langcode = NULL) Builds the render array for the provided entity. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity to render. string $view_mode: (optional) The view mode that should be used to render the entity. string $langcode: (optional) For which language the entity should be rendered, defaults to the current content language. Return value array A render array for the entity. Throws \