ConfigCrudEvent::getConfig

public ConfigCrudEvent::getConfig() Gets configuration object. Return value \Drupal\Core\Config\Config The configuration object that caused the event to fire. File core/lib/Drupal/Core/Config/ConfigCrudEvent.php, line 35 Class ConfigCrudEvent Wraps a configuration event for event listeners. Namespace Drupal\Core\Config Code public function getConfig() { return $this->config; }

UpdateManagerInterface::getProjects

public UpdateManagerInterface::getProjects() Fetches an array of installed and enabled projects. This is only responsible for generating an array of projects (taking into account projects that include more than one module or theme). Other information like the specific version and install type (official release, dev snapshot, etc) is handled later in update_process_project_info() since that logic is only required when preparing the status report, not for fetching the available release data. This

CommentTypeDeleteForm

Provides a confirmation form for deleting a comment type entity. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\EntityConfirmFormBase implements ConfirmFormInterfaceclass \Drupal\Core\Entity\EntityDeleteForm uses E

install_goto

install_goto($path) Sends the user to a different installer page. This issues an on-site HTTP redirect. Messages (and errors) are erased. Parameters $path: An installer path. File core/includes/install.inc, line 846 API functions for installing modules and themes. Code function install_goto($path) { global $base_url; $headers = array( // Not a permanent redirect. 'Cache-Control' => 'no-cache', ); $response = new RedirectResponse($base_url . '/' . $path, 302, $headers); $

Unicode::check

public static Unicode::check() Checks for Unicode support in PHP and sets the proper settings if possible. Because of the need to be able to handle text in various encodings, we do not support mbstring function overloading. HTTP input/output conversion must be disabled for similar reasons. Return value string A string identifier of a failed multibyte extension check, if any. Otherwise, an empty string. File core/lib/Drupal/Component/Utility/Unicode.php, line 145 Class Unicode Provides Uni

DatabaseStorage::getAll

public DatabaseStorage::getAll() Returns all stored key/value pairs in the collection. Return value array An associative array containing all stored items in the collection. Overrides KeyValueStoreInterface::getAll File core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php, line 94 Class DatabaseStorage Defines a default key/value store implementation. Namespace Drupal\Core\KeyValueStore Code public function getAll() { $result = $this->connection->query('SELECT name, value FR

Schema::shortenIndex

protected Schema::shortenIndex(&$index) Helper function for normalizeIndexes(). Shortens an index to 191 characters. Parameters array $index: The index array to be used in createKeySql. See also Drupal\Core\Database\Driver\mysql\Schema::createKeySql() Drupal\Core\Database\Driver\mysql\Schema::normalizeIndexes() File core/lib/Drupal/Core/Database/Driver/mysql/Schema.php, line 345 Class Schema MySQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Drive

ImageStyleStorage::$replacement

Image style replacement memory storage. This value is not stored in the backend. It's used during the deletion of an image style to save the replacement image style in the same request. The value is used later, when resolving dependencies. Type: string[] See also \Drupal\image\Form\ImageStyleDeleteForm::submitForm() File core/modules/image/src/ImageStyleStorage.php, line 23 Class ImageStyleStorage Storage controller class for "image style" configuration entities. Namespace Drupal\image

ConstraintViolationBuilder::setCause

public ConstraintViolationBuilder::setCause($cause) Sets the cause of the violation. Parameters mixed $cause The cause of the violation: Return value ConstraintViolationBuilderInterface This builder Overrides ConstraintViolationBuilderInterface::setCause File core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php, line 206 Class ConstraintViolationBuilder Defines a constraint violation builder for the Typed Data validator. Namespace Drupal\Core\TypedData\Validation

Schema::fieldSetDefault

public Schema::fieldSetDefault($table, $field, $default) Set the default value for a field. Parameters $table: The table to be altered. $field: The field to be altered. $default: Default value to be set. NULL for 'default NULL'. Throws \Drupal\Core\Database\SchemaObjectDoesNotExistException If the specified table or field doesn't exist. Overrides Schema::fieldSetDefault File core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php, line 562 Class Schema PostgreSQL implementation of \Drupal\