FormState::setUserInput

public FormState::setUserInput(array $user_input) Sets the form values as though they were submitted by a user. Parameters array $user_input: An associative array of raw and unvalidated values. Return value $this Overrides FormStateInterface::setUserInput File core/lib/Drupal/Core/Form/FormState.php, line 971 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code public function setUserInput(array $user_input) { $this->input = $user_input;

EntityListBuilder::getDefaultOperations

protected EntityListBuilder::getDefaultOperations(EntityInterface $entity) Gets this list's default operations. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity the operations are for. Return value array The array structure is identical to the return value of self::getOperations(). File core/lib/Drupal/Core/Entity/EntityListBuilder.php, line 140 Class EntityListBuilder Defines a generic implementation to build a listing of entities. Namespace Drupal\Core\Entity Code

ThemeHandlerInterface::rebuildThemeData

public ThemeHandlerInterface::rebuildThemeData() Scans and collects theme extension data and their engines. Return value \Drupal\Core\Extension\Extension[] An associative array of theme extensions. File core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php, line 123 Class ThemeHandlerInterface Manages the list of available themes. Namespace Drupal\Core\Extension Code public function rebuildThemeData();

EntityTypeInterface::getConfigDependencyKey

public EntityTypeInterface::getConfigDependencyKey() Gets the key that is used to store configuration dependencies. Return value string The key to be used in configuration dependencies when storing dependencies on entities of this type. File core/lib/Drupal/Core/Entity/EntityTypeInterface.php, line 720 Class EntityTypeInterface Provides an interface for an entity type and its metadata. Namespace Drupal\Core\Entity Code public function getConfigDependencyKey();

Information types

Types of information in Drupal. Drupal has several distinct types of information, each with its own methods for storage and retrieval: Content: Information meant to be displayed on your site: articles, basic pages, images, files, custom blocks, etc. Content is stored and accessed using Entities. Session: Information about individual users' interactions with the site, such as whether they are logged in. This is really "state" information, but it is not stored the same way so it's a separate ty

ConfigMapperInterface::getAddRouteParameters

public ConfigMapperInterface::getAddRouteParameters() Returns the route parameters for the translation add form route. Return value array File core/modules/config_translation/src/ConfigMapperInterface.php, line 105 Class ConfigMapperInterface Defines an interface for configuration mapper. Namespace Drupal\config_translation Code public function getAddRouteParameters();

ViewUI::isInstallable

public ViewUI::isInstallable() Checks whether this entity is installable. For example, a default view might not be installable if the base table doesn't exist. @retun bool TRUE if the entity is installable, FALSE otherwise. Overrides ConfigEntityInterface::isInstallable File core/modules/views_ui/src/ViewUI.php, line 1262 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function isInstallable() { return $this->storage->isInstallable(); }

MenuLinkDefaultForm::$menuLink

The edited menu link. Type: \Drupal\Core\Menu\MenuLinkInterface File core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php, line 29 Class MenuLinkDefaultForm Provides an edit form for static menu links. Namespace Drupal\Core\Menu\Form Code protected $menuLink;

file_ensure_htaccess

file_ensure_htaccess() Creates a .htaccess file in each Drupal files directory if it is missing. Related topics File interface Common file handling functions. File core/includes/file.inc, line 313 API for handling file uploads and server file management. Code function file_ensure_htaccess() { file_save_htaccess('public://', FALSE); $private_path = PrivateStream::basePath(); if (!empty($private_path)) { file_save_htaccess('private://', TRUE); } file_save_htaccess('temporary://'

ConfigFactory::$storage

A storage instance for reading and writing configuration data. Type: \Drupal\Core\Config\StorageInterface File core/lib/Drupal/Core/Config/ConfigFactory.php, line 32 Class ConfigFactory Defines the configuration object factory. Namespace Drupal\Core\Config Code protected $storage;