SystemController

Returns responses for System routes. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\system\Controller\SystemController File core/modules/system/src/Controller/SystemController.php, line 20 Namespace Drupal\system\Controller Members Name Modifiers Type Description ControllerBase::$configFactory protected

SessionConfiguration::__construct

public SessionConfiguration::__construct($options = []) Constructs a new session configuration instance. Parameters array $options: An associative array of session ini settings. See also \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage::__construct() http://php.net/manual/session.configuration.php File core/lib/Drupal/Core/Session/SessionConfiguration.php, line 26 Class SessionConfiguration Defines the default session configuration generator. Namespace Drupal\Cor

fieldset.html.twig

Default theme implementation for a fieldset element and its children. Available variables: attributes: HTML attributes for the <fieldset> element. errors: (optional) Any errors for this <fieldset> element, may not be set. required: Boolean indicating whether the <fieldeset> element is required. legend: The <legend> element containing the following properties: title: Title of the <fieldset>, intended for use as the text of the <legend>. attributes: HTML

NodeTypeForm::save

public NodeTypeForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the operatio

system_user_login

system_user_login(UserInterface $account) Implements hook_user_login(). File core/modules/system/system.module, line 789 Configuration system that lets administrators modify the workings of the site. Code function system_user_login(UserInterface $account) { $config = \Drupal::config('system.date'); // If the user has a NULL time zone, notify them to set a time zone. if (!$account->getTimezone() && $config->get('timezone.user.configurable') && $config->get('timez

config_file_download

config_file_download($uri) Implements hook_file_download(). File core/modules/config/config.module, line 64 Allows site administrators to modify configuration. Code function config_file_download($uri) { $scheme = file_uri_scheme($uri); $target = file_uri_target($uri); if ($scheme == 'temporary' && $target == 'config.tar.gz') { if (\Drupal::currentUser()->hasPermission('export configuration')) { $request = \Drupal::request(); $date = DateTime::createFromFormat(

FieldStorageConfig::setCardinality

public FieldStorageConfig::setCardinality($cardinality) Sets the maximum number of items allowed for the field. Parameters int $cardinality: The cardinality value. Return value $this Overrides FieldStorageConfigInterface::setCardinality File core/modules/field/src/Entity/FieldStorageConfig.php, line 636 Class FieldStorageConfig Defines the Field storage configuration entity. Namespace Drupal\field\Entity Code public function setCardinality($cardinality) { $this->cardinality = $c

ConfigEntityBase::sort

public static ConfigEntityBase::sort(ConfigEntityInterface $a, ConfigEntityInterface $b) Helper callback for uasort() to sort configuration entities by weight and label. File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 251 Class ConfigEntityBase Defines a base configuration entity class. Namespace Drupal\Core\Config\Entity Code public static function sort(ConfigEntityInterface $a, ConfigEntityInterface $b) { $a_weight = isset($a->weight) ? $a->weight : 0; $b

FieldItemListInterface::__set

public FieldItemListInterface::__set($property_name, $value) Magic method: Sets a property value of the first field item. See also \Drupal\Core\Field\FieldItemInterface::__get() File core/lib/Drupal/Core/Field/FieldItemListInterface.php, line 111 Class FieldItemListInterface Interface for fields, being lists of field items. Namespace Drupal\Core\Field Code public function __set($property_name, $value);

Extension::getExtensionFilename

public Extension::getExtensionFilename() Returns the name of the main extension file, if any. Return value string|null File core/lib/Drupal/Core/Extension/Extension.php, line 128 Class Extension Defines an extension (file) object. Namespace Drupal\Core\Extension Code public function getExtensionFilename() { return $this->filename; }