ViewUI::postSave

public ViewUI::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. bool $up

ExtensionDiscovery::__construct

public ExtensionDiscovery::__construct($root, $use_file_cache = TRUE, $profile_directories = NULL, $site_path = NULL) Constructs a new ExtensionDiscovery object. Parameters string $root: The app root. bool $use_file_cache: Whether file cache should be used. string[] $profile_directories: The available profile directories string $site_path: The path to the site. File core/lib/Drupal/Core/Extension/ExtensionDiscovery.php, line 113 Class ExtensionDiscovery Discovers available extensions in t

ExtensionDiscovery::ORIGIN_SITE

Origin directory weight: Site-specific directory. File core/lib/Drupal/Core/Extension/ExtensionDiscovery.php, line 50 Class ExtensionDiscovery Discovers available extensions in the filesystem. Namespace Drupal\Core\Extension Code const ORIGIN_SITE = 5;

User::getTimeZone

public User::getTimeZone() Returns the timezone of this account. Return value string Name of the timezone. Overrides AccountInterface::getTimeZone File core/modules/user/src/Entity/User.php, line 304 Class User Defines the user entity class. Namespace Drupal\user\Entity Code public function getTimeZone() { return $this->get('timezone')->value; }

filter_filter_secure_image_alter

filter_filter_secure_image_alter(&$image) Implements hook_filter_secure_image_alter(). Formats an image DOM element that has an invalid source. Parameters DOMElement $image: An IMG node to format, parsed from the filtered text. See also _filter_html_image_secure_process() Related topics Standard filters Filters implemented by the Filter module. File core/modules/filter/filter.module, line 813 Framework for handling the filtering of content. Code function filter_filter_secure_image_alt

StatementEmpty::fetch

public StatementEmpty::fetch($mode = NULL, $cursor_orientation = NULL, $cursor_offset = NULL) Fetches the next row from a result set. See http://php.net/manual/pdo.constants.php for the definition of the constants used. Parameters $mode: One of the PDO::FETCH_* constants. Default to what was specified by setFetchMode(). $cursor_orientation: Not implemented in all database drivers, don't use. $cursor_offset: Not implemented in all database drivers, don't use. Return value A result, formatted a

FieldUninstallValidator::$fieldStorageConfigStorage

The field storage config storage. Type: \Drupal\Core\Config\Entity\ConfigEntityStorageInterface File core/modules/field/src/FieldUninstallValidator.php, line 23 Class FieldUninstallValidator Prevents uninstallation of modules providing active field storage. Namespace Drupal\field Code protected $fieldStorageConfigStorage;

RequestStackCacheContextBase

Defines a base class for cache contexts depending only on the request stack. Subclasses need to implement either \Drupal\Core\Cache\Context\CacheContextInterface or \Drupal\Core\Cache\Context\CalculatedCacheContextInterface. Hierarchy class \Drupal\Core\Cache\Context\RequestStackCacheContextBase File core/lib/Drupal/Core/Cache/Context/RequestStackCacheContextBase.php, line 14 Namespace Drupal\Core\Cache\Context Members Name Modifiers Type Description RequestStackCacheContextBa

FormatterBase::__construct

public FormatterBase::__construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings) Constructs a FormatterBase object. Parameters string $plugin_id: The plugin_id for the formatter. mixed $plugin_definition: The plugin implementation definition. \Drupal\Core\Field\FieldDefinitionInterface $field_definition: The definition of the field to which the formatter is associated. array $settings: The formatter

PoDatabaseReader::$langcode

Language code of the language being read from the database. Type: string File core/modules/locale/src/PoDatabaseReader.php, line 35 Class PoDatabaseReader Gettext PO reader working with the locale module database. Namespace Drupal\locale Code private $langcode;