BlockForm::submitVisibility

protected BlockForm::submitVisibility(array $form, FormStateInterface $form_state) Helper function to independently submit the visibility UI. Parameters array $form: A nested array form elements comprising the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. File core/modules/block/src/BlockForm.php, line 377 Class BlockForm Provides form for block instance forms. Namespace Drupal\block Code protected function submitVisibility(array $form, FormSta

LibraryDiscoveryCollector::reset

public LibraryDiscoveryCollector::reset() Resets the local cache. Does not clear the persistent cache. Overrides CacheCollector::reset File core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php, line 159 Class LibraryDiscoveryCollector A CacheCollector implementation for building library extension info. Namespace Drupal\Core\Asset Code public function reset() { parent::reset(); $this->cid = NULL; }

ContextualLinkManager::$account

The current user. Type: \Drupal\Core\Session\AccountInterface File core/lib/Drupal/Core/Menu/ContextualLinkManager.php, line 66 Class ContextualLinkManager Defines a contextual link plugin manager to deal with contextual links. Namespace Drupal\Core\Menu Code protected $account;

DrupalKernel::getAppRoot

public DrupalKernel::getAppRoot() Gets the app root. Return value string Overrides DrupalKernelInterface::getAppRoot File core/lib/Drupal/Core/DrupalKernel.php, line 425 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code public function getAppRoot() { return $this->root; }

book_pick_book_nojs_submit

book_pick_book_nojs_submit($form, FormStateInterface $form_state) Form submission handler for node_form(). This handler is run when JavaScript is disabled. It triggers the form to rebuild so that the "Parent item" options are changed to reflect the newly selected book. When JavaScript is enabled, the submit button that triggers this handler is hidden, and the "Book" dropdown directly triggers the book_form_update() Ajax callback instead. See also book_form_update() book_form_node_form_alter()

Message::setMessage

public Message::setMessage($message) Sets the email message to send. Parameters string $message: The message body. Overrides MessageInterface::setMessage File core/modules/contact/src/Entity/Message.php, line 102 Class Message Defines the contact message entity. Namespace Drupal\contact\Entity Code public function setMessage($message) { $this->set('message', $message); }

MaintenanceModeSubscriber::$urlGenerator

The url generator. Type: \Drupal\Core\Routing\UrlGeneratorInterface File core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php, line 52 Class MaintenanceModeSubscriber Maintenance mode subscriber for controller requests. Namespace Drupal\Core\EventSubscriber Code protected $urlGenerator;

Connection::pushTransaction

public Connection::pushTransaction($name) Increases the depth of transaction nesting. If no transaction is already active, we begin a new transaction. Parameters string $name: The name of the transaction. Throws \Drupal\Core\Database\TransactionNameNonUniqueException See also \Drupal\Core\Database\Transaction File core/lib/Drupal/Core/Database/Connection.php, line 1116 Class Connection Base Database API class. Namespace Drupal\Core\Database Code public function pushTransaction($name

ViewAddForm::submitForm

public ViewAddForm::submitForm(array &$form, FormStateInterface $form_state) This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state can be updated, this way the subsequently invoked handlers can retrieve a regular entity object to act on. Generally this method should not be overridden unless the e

StaticTranslation::getStringTranslation

public StaticTranslation::getStringTranslation($langcode, $string, $context) Retrieves English string to given language. Parameters string $langcode: Language code to translate to. string $string: The source string. string $context: The string context. Return value string|false Translated string if there is a translation, FALSE if not. Overrides TranslatorInterface::getStringTranslation File core/lib/Drupal/Core/StringTranslation/Translator/StaticTranslation.php, line 33 Class StaticTrans