Select::distinct

public Select::distinct($distinct = TRUE) Sets this query to be DISTINCT. Parameters $distinct: TRUE to flag this query DISTINCT, FALSE to disable it. Return value \Drupal\Core\Database\Query\SelectInterface The called object. Overrides SelectInterface::distinct File core/lib/Drupal/Core/Database/Query/Select.php, line 499 Class Select Query builder for SELECT statements. Namespace Drupal\Core\Database\Query Code public function distinct($distinct = TRUE) { $this->distinct = $di

CacheCollector::delete

public CacheCollector::delete($key) Deletes the element. It depends on the specific case and implementation whether this has a permanent effect or if it just affects the current request. Parameters string $key: Key that identifies the data. Overrides CacheCollectorInterface::delete File core/lib/Drupal/Core/Cache/CacheCollector.php, line 173 Class CacheCollector Default implementation for CacheCollectorInterface. Namespace Drupal\Core\Cache Code public function delete($key) { $this-

ManagedFile::getInfo

public ManagedFile::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 ElementInterface::getInfo File core/modules/file/src/Element/ManagedFile.php, line 27 Class ManagedFile Provides an AJAX/progress aware widget for uploading and saving a file. Namespace Drupal\fil

EntityType::setLinkTemplate

public EntityType::setLinkTemplate($key, $path) Sets a single link template. Parameters string $key: The name of a link. string $path: The route path to use for the link. Return value $this Throws \InvalidArgumentException Thrown when the path does not start with a leading slash. Overrides EntityTypeInterface::setLinkTemplate File core/lib/Drupal/Core/Entity/EntityType.php, line 633 Class EntityType Provides an implementation of an entity type and its metadata. Namespace Drupal\Core\

MenuLinkContent::postSave

public MenuLinkContent::postSave(EntityStorageInterface $storage, $update = TRUE) Acts on a saved entity before the insert or update hook is invoked. Used after the entity is saved, but before invoking the insert or update hook. Note that in case of translatable content entities this callback is only fired on their current translation. It is up to the developer to iterate over all translations if needed. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object.

BookManager::loadBookLink

public BookManager::loadBookLink($nid, $translate = TRUE) Loads a single book entry. The entries of a book entry is documented in \Drupal\book\BookOutlineStorageInterface::loadMultiple. If $translate is TRUE, it also checks access ('access' key) and loads the title from the node itself. Parameters int $nid: The node ID of the book. bool $translate: If TRUE, set access, title, and other elements. Return value array The book data of that node. Overrides BookManagerInterface::loadBookLink See al

DateFormatter::formatTimeDiffSince

public DateFormatter::formatTimeDiffSince($timestamp, $options = array()) Formats the time difference from a timestamp to the current request time. Parameters $timestamp: A UNIX timestamp to compare against the current request time. array $options: (optional) An associative array with additional options. The following keys can be used: granularity: An integer value that signals how many different units to display in the string. Defaults to 2. langcode: The language code for the language used

Condition::arguments

public Condition::arguments() Gets a complete list of all values to insert into the prepared statement. Return value An associative array of placeholders and values. Overrides ConditionInterface::arguments File core/lib/Drupal/Core/Database/Query/Condition.php, line 137 Class Condition Generic class for a series of conditions in a query. Namespace Drupal\Core\Database\Query Code public function arguments() { // If the caller forgot to call compile() first, refuse to run. if ($this

FormBuilder::$formCache

The form cache. Type: \Drupal\Core\Form\FormCacheInterface File core/lib/Drupal/Core/Form/FormBuilder.php, line 101 Class FormBuilder Provides form building and processing. Namespace Drupal\Core\Form Code protected $formCache;

LanguageNegotiationMethodBase

Base class for language negotiation methods. Hierarchy class \Drupal\language\LanguageNegotiationMethodBase implements LanguageNegotiationMethodInterface File core/modules/language/src/LanguageNegotiationMethodBase.php, line 12 Namespace Drupal\language Members Name Modifiers Type Description LanguageNegotiationMethodBase::$config protected property The configuration factory. LanguageNegotiationMethodBase::$currentUser protected property The current active user.