LocaleConfigManager::hasTranslation

public LocaleConfigManager::hasTranslation($name, $langcode) Checks whether a language has configuration translation. Parameters string $name: Configuration name. string $langcode: A language code. Return value bool A boolean indicating if a language has configuration translations. File core/modules/locale/src/LocaleConfigManager.php, line 469 Class LocaleConfigManager Manages configuration supported in part by interface translation. Namespace Drupal\locale Code public function hasTr

ConditionFundamentals::__clone

public ConditionFundamentals::__clone() Implements the magic __clone function. Makes sure condition groups are cloned as well. File core/lib/Drupal/Core/Entity/Query/ConditionFundamentals.php, line 83 Class ConditionFundamentals Common code for all implementations of the entity query condition interfaces. Namespace Drupal\Core\Entity\Query Code public function __clone() { foreach ($this->conditions as $key => $condition) { if ($condition['field'] instanceof ConditionInterfa

StatementInterface::fetchAssoc

public StatementInterface::fetchAssoc() Fetches the next row and returns it as an associative array. This method corresponds to PDOStatement::fetchObject(), but for associative arrays. For some reason PDOStatement does not have a corresponding array helper method, so one is added. Return value An associative array, or FALSE if there is no next row. File core/lib/Drupal/Core/Database/StatementInterface.php, line 143 Class StatementInterface Represents a prepared statement. Namespace Dru

DynamicPageCacheSubscriber::__construct

public DynamicPageCacheSubscriber::__construct(RequestPolicyInterface $request_policy, ResponsePolicyInterface $response_policy, RenderCacheInterface $render_cache, array $renderer_config) Constructs a new DynamicPageCacheSubscriber object. Parameters \Drupal\Core\PageCache\RequestPolicyInterface $request_policy: A policy rule determining the cacheability of a request. \Drupal\Core\PageCache\ResponsePolicyInterface $response_policy: A policy rule determining the cacheability of the response. \

TranslationManager::$translators

An unsorted array of arrays of active translators. An associative array. The keys are integers that indicate priority. Values are arrays of TranslatorInterface objects. Type: \Drupal\Core\StringTranslation\Translator\TranslatorInterface[][] See also \Drupal\Core\StringTranslation\TranslationManager::addTranslator() \Drupal\Core\StringTranslation\TranslationManager::sortTranslators() File core/lib/Drupal/Core/StringTranslation/TranslationManager.php, line 24 Class TranslationManager Define

EntityManager::useCaches

public EntityManager::useCaches($use_caches = FALSE) Disable the use of caches. Can be used to ensure that uncached plugin definitions are returned, without invalidating all cached information. This will also remove all local/static caches. Parameters bool $use_caches: FALSE to not use any caches. Overrides CachedDiscoveryInterface::useCaches File core/lib/Drupal/Core/Entity/EntityManager.php, line 462 Class EntityManager Provides a wrapper around many other services relating to entities.

batch_get

&batch_get() Retrieves the current batch. Related topics Batch operations Creates and processes batch operations. File core/includes/form.inc, line 878 Functions for form and batch generation and processing. Code function &batch_get() { // Not drupal_static(), because Batch API operates at a lower level than most // use-cases for resetting static variables, and we specifically do not want a // global drupal_static_reset() resetting the batch information. Functions // that ar

Select::__clone

public Select::__clone() Implements the magic __clone function. Overrides Query::__clone File core/lib/Drupal/Core/Database/Query/Select.php, line 900 Class Select Query builder for SELECT statements. Namespace Drupal\Core\Database\Query Code public function __clone() { // On cloning, also clone the dependent objects. However, we do not // want to clone the database connection object as that would duplicate the // connection itself. $this->condition = clone($this->condit

field_purge_batch

field_purge_batch($batch_size, $field_storage_uuid = NULL) Purges a batch of deleted Field API data, field storages, or fields. This function will purge deleted field data in batches. The batch size is defined as an argument to the function, and once each batch is finished, it continues with the next batch until all have completed. If a deleted field with no remaining data records is found, the field itself will be purged. If a deleted field storage with no remaining fields is found, the field

BookManagerInterface::bookTreeAllData

public BookManagerInterface::bookTreeAllData($bid, $link = NULL, $max_depth = NULL) Gets the data structure representing a named menu tree. Since this can be the full tree including hidden items, the data returned may be used for generating an an admin interface or a select. Note: based on menu_tree_all_data(). Parameters int $bid: The Book ID to find links for. array|null $link: (optional) A fully loaded menu link, or NULL. If a link is supplied, only the path to root will be included in the