FileStorageFactory::getSync

static FileStorageFactory::getSync() Returns a FileStorage object working with the sync config directory. Return value \Drupal\Core\Config\FileStorage FileStorage File core/lib/Drupal/Core/Config/FileStorageFactory.php, line 27 Class FileStorageFactory Provides a factory for creating config file storage objects. Namespace Drupal\Core\Config Code static function getSync() { return new FileStorage(config_get_config_directory(CONFIG_SYNC_DIRECTORY)); }

StorageInterface

Defines an interface for configuration storage. Classes implementing this interface allow reading and writing configuration data from and to the storage. Hierarchy interface \Drupal\Core\Config\StorageInterface File core/lib/Drupal/Core/Config/StorageInterface.php, line 11 Namespace Drupal\Core\Config Members Name Modifiers Type Description StorageInterface::createCollection public function Creates a collection on the storage. StorageInterface::decode public functi

EntityTypeInterface::getLabelCallback

public EntityTypeInterface::getLabelCallback() Gets the callback for the label of the entity. The function takes an entity and returns the label of the entity. Use language() on the entity to get information on the requested language. The entity label is the main string associated with an entity; for example, the title of a node or the subject of a comment. If there is an entity object property that defines the label, use the 'label' element of the 'entity_keys' return value component to provid

QueryAggregate::finish

protected QueryAggregate::finish() Overrides \Drupal\Core\Entity\Query\Sql\Query::finish(). Adds the sql expressions to the query. Overrides Query::finish File core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php, line 135 Class QueryAggregate The SQL storage entity query aggregate class. Namespace Drupal\Core\Entity\Query\Sql Code protected function finish() { foreach ($this->sqlExpressions as $alias => $expression) { $this->sqlQuery->addExpression($expression, $

ThemeManager::initTheme

protected ThemeManager::initTheme(RouteMatchInterface $route_match = NULL) Initializes the active theme for a given route match. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. File core/lib/Drupal/Core/Theme/ThemeManager.php, line 396 Class ThemeManager Provides the default implementation of a theme manager. Namespace Drupal\Core\Theme Code protected function initTheme(RouteMatchInterface $route_match = NULL) { // Determine the active them

FileStorageFactory

Provides a factory for creating config file storage objects. Hierarchy class \Drupal\Core\Config\FileStorageFactory File core/lib/Drupal/Core/Config/FileStorageFactory.php, line 8 Namespace Drupal\Core\Config Members Name Modifiers Type Description FileStorageFactory::getActive Deprecated static function Returns a FileStorage object working with the active config directory. FileStorageFactory::getSync static function Returns a FileStorage object working with the

OptimizedPhpArrayDumper::dumpCollection

protected OptimizedPhpArrayDumper::dumpCollection($collection, &$resolve = FALSE) Dumps a collection to a PHP array. Parameters mixed $collection: A collection to process. bool &$resolve: Used for passing the information to the caller whether the given collection needed to be resolved or not. This is used for optimizing deep arrays that don't need to be traversed. Return value \stdClass|array The collection in a suitable format. File core/lib/Drupal/Component/DependencyInjection/Dumpe

FormatterInterface::prepareView

public FormatterInterface::prepareView(array $entities_items) Allows formatters to load information for field values being displayed. This should be used when a formatter needs to load additional information from the database in order to render a field, for example a reference field that displays properties of the referenced entities such as name or type. This method operates on multiple entities. The $entities_items parameter is an array keyed by entity ID. For performance reasons, information

MenuLinkManagerInterface::removeDefinition

public MenuLinkManagerInterface::removeDefinition($id, $persist = TRUE) Removes a single link definition from the menu tree storage. This is used for plugins not found through discovery to remove definitions. Parameters string $id: The menu link plugin ID. bool $persist: If TRUE, this method will attempt to persist the deletion from any external storage by invoking MenuLinkInterface::deleteLink() on the plugin that is being deleted. Throws \Drupal\Component\Plugin\Exception\PluginException Th

LocaleConfigSubscriber::onConfigSave

public LocaleConfigSubscriber::onConfigSave(ConfigCrudEvent $event) Updates the locale strings when a translated active configuration is saved. Parameters \Drupal\Core\Config\ConfigCrudEvent $event: The configuration event. File core/modules/locale/src/LocaleConfigSubscriber.php, line 78 Class LocaleConfigSubscriber Updates strings translation when configuration translations change. Namespace Drupal\locale Code public function onConfigSave(ConfigCrudEvent $event) { // Only attempt t