StorageBase::get

public StorageBase::get($key, $default = NULL) Returns the stored value for a given key. Parameters string $key: The key of the data to retrieve. mixed $default: The default value to use if the key is not found. Return value mixed The stored value, or the default value if no value exists. Overrides KeyValueStoreInterface::get File core/lib/Drupal/Core/KeyValueStore/StorageBase.php, line 34 Class StorageBase Provides a base class for key/value storage implementations. Namespace Drupal\

EntityTypeListener::$entityLastInstalledSchemaRepository

The entity last installed schema repository. Type: \Drupal\Core\Entity\EntityLastInstalledSchemaRepositoryInterface File core/lib/Drupal/Core/Entity/EntityTypeListener.php, line 40 Class EntityTypeListener Reacts to entity type CRUD on behalf of the Entity system. Namespace Drupal\Core\Entity Code protected $entityLastInstalledSchemaRepository;

drupal_get_destination

drupal_get_destination() Prepares a 'destination' URL query parameter. Used to direct the user back to the referring page after completing a form. By default the current URL is returned. If a destination exists in the previous request, that destination is returned. As such, a destination can persist across multiple pages. Return value array An associative array containing the key: destination: The value of the current request's 'destination' query parameter, if present. This can be either a r

SharedTempStore::set

public SharedTempStore::set($key, $value) Stores a particular key/value pair in this SharedTempStore. Parameters string $key: The key of the data to store. mixed $value: The data to store. File core/modules/user/src/SharedTempStore.php, line 189 Class SharedTempStore Stores and retrieves temporary data for a given owner. Namespace Drupal\user Code public function set($key, $value) { if (!$this->lockBackend->acquire($key)) { $this->lockBackend->wait($key); if (!$t

shortcut_renderable_links

shortcut_renderable_links($shortcut_set = NULL) Returns an array of shortcut links, suitable for rendering. Parameters \Drupal\shortcut\ShortcutSetInterface $shortcut_set: (optional) An object representing the set whose links will be displayed. If not provided, the user's current set will be displayed. Return value \Drupal\shortcut\ShortcutInterface[] An array of shortcut links, in the format returned by the menu system. File core/modules/shortcut/shortcut.module, line 254 Allows users to man

node_entity_extra_field_info

node_entity_extra_field_info() Implements hook_entity_extra_field_info(). File core/modules/node/node.module, line 369 The core module that allows content to be submitted to the site. Code function node_entity_extra_field_info() { $extra = array(); $description = t('Node module element'); foreach (NodeType::loadMultiple() as $bundle) { $extra['node'][$bundle->id()]['display']['links'] = array( 'label' => t('Links'), 'description' => $description, 'weight'

PhpStreamWrapperInterface::url_stat

public PhpStreamWrapperInterface::url_stat($path, $flags) Return value array File core/lib/Drupal/Core/StreamWrapper/PhpStreamWrapperInterface.php, line 221 Class PhpStreamWrapperInterface Defines a generic PHP stream wrapper interface. Namespace Drupal\Core\StreamWrapper Code public function url_stat($path, $flags);

EditorDialogSave::__construct

public EditorDialogSave::__construct($values) Constructs a EditorDialogSave object. Parameters string $values: The values that should be passed to the form constructor in Drupal. File core/modules/editor/src/Ajax/EditorDialogSave.php, line 28 Class EditorDialogSave Provides an AJAX command for saving the contents of an editor dialog. Namespace Drupal\editor\Ajax Code public function __construct($values) { $this->values = $values; }

hook_language_types_info

hook_language_types_info() Define language types. Return value array An associative array of language type definitions. The keys are the identifiers, which are also used as names for global variables representing the types in the bootstrap phase. The values are associative arrays that may contain the following elements: name: The human-readable language type identifier. description: A description of the language type. locked: A boolean indicating if the user can choose whether to configure

DbDumpApplication::getCommandName

protected DbDumpApplication::getCommandName(InputInterface $input) Gets the name of the command based on input. Parameters InputInterface $input The input interface: Return value string The command name Overrides Application::getCommandName File core/lib/Drupal/Core/Command/DbDumpApplication.php, line 16 Class DbDumpApplication Provides a command to dump a database generation script. Namespace Drupal\Core\Command Code protected function getCommandName(InputInterface $input) { retur