ConfigInstaller::drupalGetPath

protected ConfigInstaller::drupalGetPath($type, $name) Wrapper for drupal_get_path(). Parameters $type: The type of the item; one of 'core', 'profile', 'module', 'theme', or 'theme_engine'. $name: The name of the item for which the path is requested. Ignored for $type 'core'. Return value string The path to the requested item or an empty string if the item is not found. File core/lib/Drupal/Core/Config/ConfigInstaller.php, line 634 Class ConfigInstaller Namespace Drupal\Core\Config

InsertCommand::__construct

public InsertCommand::__construct($selector, $content, array $settings = NULL) Constructs an InsertCommand object. Parameters string $selector: A CSS selector. string|array $content: The content that will be inserted in the matched element(s), either a render array or an HTML string. array $settings: An array of JavaScript settings to be passed to any attached behaviors. File core/lib/Drupal/Core/Ajax/InsertCommand.php, line 58 Class InsertCommand Generic AJAX command for inserting conten

CachedStorage::getCacheKeys

protected CachedStorage::getCacheKeys(array $names) Returns a cache key map for an array of configuration names. Parameters array $names: The configuration names. Return value array An array of cache keys keyed by configuration names. File core/lib/Drupal/Core/Config/CachedStorage.php, line 279 Class CachedStorage Defines the cached storage. Namespace Drupal\Core\Config Code protected function getCacheKeys(array $names) { $prefix = $this->getCollectionPrefix(); $cache_keys = a

CsrfTokenGenerator::$sessionMetadata

The session metadata bag. Type: \Drupal\Core\Session\MetadataBag File core/lib/Drupal/Core/Access/CsrfTokenGenerator.php, line 29 Class CsrfTokenGenerator Generates and validates CSRF tokens. Namespace Drupal\Core\Access Code protected $sessionMetadata;

DatabaseStorage::rename

public DatabaseStorage::rename($key, $new_key) Renames a key. Parameters string $key: The key to rename. string $new_key: The new key name. Overrides KeyValueStoreInterface::rename File core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php, line 138 Class DatabaseStorage Defines a default key/value store implementation. Namespace Drupal\Core\KeyValueStore Code public function rename($key, $new_key) { $this->connection->update($this->table) ->fields(array('name' =>

LinkGeneratorTrait::l

protected LinkGeneratorTrait::l($text, Url $url) Renders a link to a route given a route name and its parameters. For details on the arguments, usage, and possible exceptions see \Drupal\Core\Utility\LinkGeneratorInterface::generate(). Return value \Drupal\Core\GeneratedLink A GeneratedLink object containing a link to the given route and parameters and bubbleable metadata. Deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Link instead. See also \Drupal\Co

ContentTranslationHandler::getFieldDefinitions

public ContentTranslationHandler::getFieldDefinitions() Returns a set of field definitions to be used to store metadata items. Return value \Drupal\Core\Field\FieldDefinitionInterface[] Overrides ContentTranslationHandlerInterface::getFieldDefinitions File core/modules/content_translation/src/ContentTranslationHandler.php, line 110 Class ContentTranslationHandler Base class for content translation handlers. Namespace Drupal\content_translation Code public function getFieldDefinitions(

FieldItemInterface::__set

public FieldItemInterface::__set($property_name, $value) Magic method: Sets a property value. Parameters $property_name: The name of the property to set; e.g., 'title' or 'name'. $value: The value to set, or NULL to unset the property. Optionally, a typed data object implementing Drupal\Core\TypedData\TypedDataInterface may be passed instead of a plain value. Throws \InvalidArgumentException If a not existing property is set. File core/lib/Drupal/Core/Field/FieldItemInterface.php, line 141

DiffOpAdd

@todo document @private @subpackage DifferenceEngine Hierarchy class \Drupal\Component\Diff\Engine\DiffOpclass \Drupal\Component\Diff\Engine\DiffOpAdd File core/lib/Drupal/Component/Diff/Engine/DiffOpAdd.php, line 10 Namespace Drupal\Component\Diff\Engine Members Name Modifiers Type Description DiffOp::$closing public property DiffOp::$orig public property DiffOp::nclosing public function DiffOp::norig public function DiffOpAdd::$type public

StaticMenuLinkOverrides::$configName

The config name used to store the overrides. This configuration can not be overridden by configuration overrides because menu links and these overrides are cached in a way that is not override aware. Type: string File core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php, line 21 Class StaticMenuLinkOverrides Defines an implementation of the menu link override using a config file. Namespace Drupal\Core\Menu Code protected $configName = 'core.menu.static_menu_link_overrides';