DateFormatter::formatDiff

public DateFormatter::formatDiff($from, $to, $options = array()) Formats a time interval between two timestamps. Parameters int $from: A UNIX timestamp, defining the from date and time. int $to: A UNIX timestamp, defining the to date and 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 la

FormState::$invalidToken

If set to TRUE the form will skip calling form element value callbacks, except for a select list of callbacks provided by Drupal core that are known to be safe. This property is uncacheable. Type: bool See also self::setInvalidToken() File core/lib/Drupal/Core/Form/FormState.php, line 115 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code protected $invalidToken = FALSE;

FormState::setAnyErrors

protected static FormState::setAnyErrors($errors = TRUE) Sets the global status of errors. Parameters bool $errors: TRUE if any form has any errors, FALSE otherwise. File core/lib/Drupal/Core/Form/FormState.php, line 1041 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code protected static function setAnyErrors($errors = TRUE) { static::$anyErrors = $errors; }

GeneratedUrl::$generatedUrl

The string value of the URL. Type: string File core/lib/Drupal/Core/GeneratedUrl.php, line 20 Class GeneratedUrl Used to return generated URLs, along with associated bubbleable metadata. Namespace Drupal\Core Code protected $generatedUrl = '';

ConfigFormBaseTrait::config

protected ConfigFormBaseTrait::config($name) Retrieves a configuration object. Parameters string $name: The name of the configuration object to retrieve. The name corresponds to a configuration file. For \Drupal::config('book.admin') , the config object returned will contain the contents of book.admin configuration file. Return value \Drupal\Core\Config\Config|\Drupal\Core\Config\ImmutableConfig An editable configuration object if the given name is listed in the getEditableConfigNames() met

Undefined

Undefined configuration element. Hierarchy class \Drupal\Core\TypedData\TypedData implements PluginInspectionInterface, TypedDataInterface uses StringTranslationTrait, TypedDataTraitclass \Drupal\Core\Config\Schema\Elementclass \Drupal\Core\Config\Schema\Undefined File core/lib/Drupal/Core/Config/Schema/Undefined.php, line 8 Namespace Drupal\Core\Config\Schema Members Name Modifiers Type Description Element::$value protected property The configuration value. Element:

entity_render_cache_clear

entity_render_cache_clear() Clears the entity render cache for all entity types. File core/includes/entity.inc, line 15 Entity API for handling entities like nodes or users. Code function entity_render_cache_clear() { $entity_manager = Drupal::entityManager(); foreach ($entity_manager->getDefinitions() as $entity_type => $info) { if ($entity_manager->hasHandler($entity_type, 'view_builder')) { $entity_manager->getViewBuilder($entity_type)->resetCache(); } }

ImageToolkitOperationManager::$logger

A logger instance. Type: \Psr\Log\LoggerInterface File core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationManager.php, line 28 Class ImageToolkitOperationManager Manages toolkit operation plugins. Namespace Drupal\Core\ImageToolkit Code protected $logger;

QueryBase::sort

public QueryBase::sort($field, $direction = 'ASC', $langcode = NULL) Parameters $field: Name of a field. string $direction: $langcode: Language code (optional). Return value \Drupal\Core\Entity\Query\QueryInterface The called object. Overrides QueryInterface::sort File core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 225 Class QueryBase The base entity query class. Namespace Drupal\Core\Entity\Query Code public function sort($field, $direction = 'ASC', $langcode = NULL) { $thi

ClassResolverInterface

Provides an interface to get a instance of a class with dependency injection. Hierarchy interface \Drupal\Core\DependencyInjection\ClassResolverInterface File core/lib/Drupal/Core/DependencyInjection/ClassResolverInterface.php, line 8 Namespace Drupal\Core\DependencyInjection Members Name Modifiers Type Description ClassResolverInterface::getInstanceFromDefinition public function Returns a class instance with a given class definition.