ContentEntityStorageBase::doSaveFieldItems

abstract protected ContentEntityStorageBase::doSaveFieldItems(ContentEntityInterface $entity, array $names = []) Writes entity field values to the storage. This method is responsible for allocating entity and revision identifiers and updating the entity object with their values. Parameters \Drupal\Core\Entity\ContentEntityInterface $entity: The entity object. string[] $names: (optional) The name of the fields to be written to the storage. If an empty value is passed all field values are saved.

CssOptimizer::optimize

public CssOptimizer::optimize(array $css_asset) Optimizes an asset. Parameters array $asset: An asset. Return value string The optimized asset's contents. Overrides AssetOptimizerInterface::optimize File core/lib/Drupal/Core/Asset/CssOptimizer.php, line 22 Class CssOptimizer Optimizes a CSS asset. Namespace Drupal\Core\Asset Code public function optimize(array $css_asset) { if ($css_asset['type'] != 'file') { throw new \Exception('Only file CSS assets can be optimized.'); }

Container::set

public Container::set($id, $service, $scope = ContainerInterface::SCOPE_CONTAINER) Overrides Container::set File core/lib/Drupal/Core/DependencyInjection/Container.php, line 16 Class Container Extends the Drupal container to set the service ID on the created object. Namespace Drupal\Core\DependencyInjection Code public function set($id, $service, $scope = ContainerInterface::SCOPE_CONTAINER) { parent::set($id, $service, $scope); // Ensure that the _serviceId property is set on syn

ThemeHandlerInterface

Manages the list of available themes. Hierarchy interface \Drupal\Core\Extension\ThemeHandlerInterface File core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php, line 8 Namespace Drupal\Core\Extension Members Name Modifiers Type Description ThemeHandlerInterface::addTheme public function Adds a theme extension to the internal listing. ThemeHandlerInterface::getBaseThemes public function Finds all the base themes for the specified theme. ThemeHandlerInterfac

BlockManager::__construct

public BlockManager::__construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) Constructs a new \Drupal\Core\Block\BlockManager object. Parameters \Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations. \Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use. \Drupal\Core\Extension\ModuleHandlerI

QueryBase::groupBy

public QueryBase::groupBy($field, $langcode = NULL) File core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 424 Class QueryBase The base entity query class. Namespace Drupal\Core\Entity\Query Code public function groupBy($field, $langcode = NULL) { $this->groupBy[] = array( 'field' => $field, 'langcode' => $langcode, ); return $this; }

FormStateDecoratorBase::unsetValue

public FormStateDecoratorBase::unsetValue($key) Removes a specific key from the submitted form values. Parameters string|array $key: Values are stored as a multi-dimensional associative array. If $key is a string, it will use unset($values[$key]). If $key is an array, each element of the array will be used as a nested key. If $key = array('foo', 'bar') it will use unset($values['foo']['bar']). Return value $this Overrides FormStateInterface::unsetValue File core/lib/Drupal/Core/Form/FormState

SelectExtender::havingConditions

public &SelectExtender::havingConditions() Gets a list of all conditions in the HAVING clause. This method returns by reference. That allows alter hooks to access the data structure directly and manipulate it before it gets compiled. Return value array An array of conditions. Overrides SelectInterface::havingConditions See also \Drupal\Core\Database\Query\ConditionInterface::conditions() File core/lib/Drupal/Core/Database/Query/SelectExtender.php, line 155 Class SelectExtender The ba

UserStorageInterface

Defines an interface for user entity storage classes. Hierarchy interface \Drupal\Core\Entity\EntityStorageInterfaceinterface \Drupal\Core\Entity\ContentEntityStorageInterfaceinterface \Drupal\user\UserStorageInterface File core/modules/user/src/UserStorageInterface.php, line 11 Namespace Drupal\user Members Name Modifiers Type Description ContentEntityStorageInterface::createTranslation public function Constructs a new entity translation object, without permanently sa

CurrentRouteMatch::getParameter

public CurrentRouteMatch::getParameter($parameter_name) Returns the processed value of a named route parameter. Raw URL parameters are processed by the parameter conversion system, which does operations such as converting entity ID parameters to fully-loaded entities. For example, the path node/12345 would have a raw node ID parameter value of 12345, while the processed parameter value would be the corresponding loaded node object. Parameters string $parameter_name: The parameter name. Return