BookSettingsForm::validateForm

public BookSettingsForm::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/book/src/Form/BookSettingsForm.php, line 56 Class BookSettingsForm Configure book settings for this site. Namespace Drupal\book\Form Code public function validat

FormBase::resetConfigFactory

public FormBase::resetConfigFactory() Resets the configuration factory. File core/lib/Drupal/Core/Form/FormBase.php, line 143 Class FormBase Provides a base class for forms. Namespace Drupal\Core\Form Code public function resetConfigFactory() { $this->configFactory = NULL; }

ContentEntityDeleteForm::logDeletionMessage

protected ContentEntityDeleteForm::logDeletionMessage() File core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php, line 108 Class ContentEntityDeleteForm Provides a generic base class for a content entity deletion form. Namespace Drupal\Core\Entity Code protected function logDeletionMessage() { /** @var \Drupal\Core\Entity\ContentEntityInterface $entity */ $entity = $this->getEntity(); if (!$entity->isDefaultTranslation()) { $this->logger($entity->getEntityTyp

ViewsData::prepareCid

protected ViewsData::prepareCid($cid) Prepares the cache ID by appending a language code. Parameters string $cid: The cache ID to prepare. Return value string The prepared cache ID. File core/modules/views/src/ViewsData.php, line 223 Class ViewsData Class to manage and lazy load cached views data. Namespace Drupal\views Code protected function prepareCid($cid) { return $cid . ':' . $this->langcode; }

FileTransfer::__get

FileTransfer::__get($name) Implements the magic __get() method. If the connection isn't set to anything, this will call the connect() method and return the result; afterwards, the connection will be returned directly without using this method. Parameters string $name: The name of the variable to return. Return value string|bool The variable specified in $name. File core/lib/Drupal/Core/FileTransfer/FileTransfer.php, line 93 Class FileTransfer Defines the base FileTransfer class. Namesp

DateTimePlus::createFromArray

public static DateTimePlus::createFromArray(array $date_parts, $timezone = NULL, $settings = array()) Creates a date object from an array of date parts. Converts the input value into an ISO date, forcing a full ISO date even if some values are missing. Parameters array $date_parts: An array of date parts, like ('year' => 2014, 'month' => 4). mixed $timezone: (optional) \DateTimeZone object, time zone string or NULL. NULL uses the default system time zone. Defaults to NULL. array $setting

Connection::setPrefix

protected Connection::setPrefix($prefix) Set the list of prefixes used by this database connection. Parameters array|string $prefix: Either a single prefix, or an array of prefixes, in any of the multiple forms documented in default.settings.php. File core/lib/Drupal/Core/Database/Connection.php, line 280 Class Connection Base Database API class. Namespace Drupal\Core\Database Code protected function setPrefix($prefix) { if (is_array($prefix)) { $this->prefixes = $prefix + ar

views_ui_add_ajax_trigger

views_ui_add_ajax_trigger(&$wrapping_element, $trigger_key, $refresh_parents) Converts a form element in the add view wizard to be AJAX-enabled. This function takes a form element and adds AJAX behaviors to it such that changing it triggers another part of the form to update automatically. It also adds a submit button to the form that appears next to the triggering element and that duplicates its functionality for users who do not have JavaScript enabled (the button is automatically hidden

install_database_errors

install_database_errors($database, $settings_file) Checks a database connection and returns any errors. File core/includes/install.core.inc, line 1127 API functions for installing Drupal. Code function install_database_errors($database, $settings_file) { $errors = array(); // Check database type. $database_types = drupal_get_database_types(); $driver = $database['driver']; if (!isset($database_types[$driver])) { $errors['driver'] = t("In your %settings_file file you have config

SessionConfigurationInterface::getOptions

public SessionConfigurationInterface::getOptions(Request $request) Returns a list of options suitable for passing to the session storage. Parameters \Symfony\Component\HttpFoundation\Request $request: The request. Return value array An associative array of session ini settings. See also \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage::__construct() File core/lib/Drupal/Core/Session/SessionConfigurationInterface.php, line 39 Class SessionConfigurationInterface Defi