FieldItemListInterface::postSave

public FieldItemListInterface::postSave($update) Defines custom post-save behavior for field values. This method is called during the process of saving an entity, just after item values are written into storage. Parameters bool $update: Specifies whether the entity is being updated or created. Return value bool Whether field items should be rewritten to the storage as a consequence of the logic implemented by the custom behavior. See also \Drupal\Core\Field\FieldItemInterface::postSave() Fil

Container::initialized

public Container::initialized($id) Check for whether or not a service has been initialized. Parameters string $id: Return value bool true if the service has been initialized, false otherwise Overrides IntrospectableContainerInterface::initialized File core/lib/Drupal/Component/DependencyInjection/Container.php, line 415 Class Container Provides a container optimized for Drupal's needs. Namespace Drupal\Component\DependencyInjection Code public function initialized($id) { if (isset(

KeyValueFactoryInterface

Defines the key/value store factory interface. Hierarchy interface \Drupal\Core\KeyValueStore\KeyValueFactoryInterface File core/lib/Drupal/Core/KeyValueStore/KeyValueFactoryInterface.php, line 8 Namespace Drupal\Core\KeyValueStore Members Name Modifiers Type Description KeyValueFactoryInterface::get public function Constructs a new key/value store for a given collection name.

Entity::label

public Entity::label() Gets the label of the entity. Return value string|null The label of the entity, or NULL if there is no label defined. Overrides EntityInterface::label File core/lib/Drupal/Core/Entity/Entity.php, line 155 Class Entity Defines a base entity class. Namespace Drupal\Core\Entity Code public function label() { $label = NULL; $entity_type = $this->getEntityType(); if (($label_callback = $entity_type->getLabelCallback()) && is_callable($label_callba

FieldItemListInterface::getLangcode

public FieldItemListInterface::getLangcode() Gets the langcode of the field values held in the object. Return value string The langcode. File core/lib/Drupal/Core/Field/FieldItemListInterface.php, line 52 Class FieldItemListInterface Interface for fields, being lists of field items. Namespace Drupal\Core\Field Code public function getLangcode();

ContentTranslationMetadataWrapperInterface::setSource

public ContentTranslationMetadataWrapperInterface::setSource($source) Sets the source language for this translation. Parameters string $source: The source language code. Return value $this File core/modules/content_translation/src/ContentTranslationMetadataWrapperInterface.php, line 31 Class ContentTranslationMetadataWrapperInterface Common interface for content translation metadata wrappers. Namespace Drupal\content_translation Code public function setSource($source);

FieldItemListInterface::getSetting

public FieldItemListInterface::getSetting($setting_name) Returns the value of a given field setting. Parameters string $setting_name: The setting name. Return value mixed The setting value. File core/lib/Drupal/Core/Field/FieldItemListInterface.php, line 79 Class FieldItemListInterface Interface for fields, being lists of field items. Namespace Drupal\Core\Field Code public function getSetting($setting_name);

form-element.html.twig

Default theme implementation for a form element. Available variables: attributes: HTML attributes for the containing element. errors: (optional) Any errors for this form element, may not be set. prefix: (optional) The form element prefix, may not be set. suffix: (optional) The form element suffix, may not be set. required: The required marker, or empty if the associated form element is not required. type: The type of the element. name: The name of the element. label: A rendered label el

drupal_get_installed_schema_version

drupal_get_installed_schema_version($module, $reset = FALSE, $array = FALSE) Returns the currently installed schema version for a module. Parameters string $module: A module name. bool $reset: Set to TRUE after installing or uninstalling an extension. bool $array: Set to TRUE if you want to get information about all modules in the system. Return value string|int The currently installed schema version, or SCHEMA_UNINSTALLED if the module is not installed. Related topics Schema API API to handl

DateTimePlus::prepareTimezone

protected DateTimePlus::prepareTimezone($timezone) Prepares the input timezone value. Changes the timezone before trying to use it, if necessary. Most importantly, makes sure there is a valid timezone object before moving further. Parameters mixed $timezone: Either a timezone name or a timezone object or NULL. Return value \DateTimeZone The massaged time zone. File core/lib/Drupal/Component/Datetime/DateTimePlus.php, line 390 Class DateTimePlus Wraps DateTime(). Namespace Drupal\Compo