Tasks::initializeDatabase

Tasks::initializeDatabase() Make PostgreSQL Drupal friendly. File core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php, line 240 Class Tasks Specifies installation tasks for PostgreSQL databases. Namespace Drupal\Core\Database\Driver\pgsql\Install Code function initializeDatabase() { // We create some functions using global names instead of prefixing them // like we do with table names. This is so that we don't double up if more // than one instance of Drupal is running o

db_query_temporary

db_query_temporary($query, array $args = array(), array $options = array()) Executes a SELECT query string and saves the result set to a temporary table. The execution of the query string happens against the active database. Parameters string $query: The prepared SELECT statement query to run. Although it will accept both named and unnamed placeholders, named placeholders are strongly preferred as they are more self-documenting. array $args: An array of values to substitute into the query. If

db_transaction

db_transaction($name = NULL, array $options = array()) Returns a new transaction object for the active database. Parameters string $name: Optional name of the transaction. array $options: An array of options to control how the transaction operates: target: The database target name. Return value \Drupal\Core\Database\Transaction A new Transaction object for this connection. Deprecated as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into you

EntityConfirmFormBase::getDescription

public EntityConfirmFormBase::getDescription() Returns additional text to display as a description. Return value string The form description. Overrides ConfirmFormInterface::getDescription File core/lib/Drupal/Core/Entity/EntityConfirmFormBase.php, line 26 Class EntityConfirmFormBase Provides a generic base class for an entity-based confirmation form. Namespace Drupal\Core\Entity Code public function getDescription() { return $this->t('This action cannot be undone.'); }

Container::set

public Container::set($id, $service, $scope = ContainerInterface::SCOPE_CONTAINER) File core/lib/Drupal/Component/DependencyInjection/Container.php, line 364 Class Container Provides a container optimized for Drupal's needs. Namespace Drupal\Component\DependencyInjection Code public function set($id, $service, $scope = ContainerInterface::SCOPE_CONTAINER) { if (!in_array($scope, array('container', 'request')) || ('request' === $scope && 'request' !== $id)) { @trigger_erro

LanguageConfigOverrideCrudEvent::getLanguageConfigOverride

public LanguageConfigOverrideCrudEvent::getLanguageConfigOverride() Gets configuration object. Return value \Drupal\language\Config\LanguageConfigOverride The configuration object that caused the event to fire. File core/modules/language/src/Config/LanguageConfigOverrideCrudEvent.php, line 37 Class LanguageConfigOverrideCrudEvent Provides a language override event for event listeners. Namespace Drupal\language\Config Code public function getLanguageConfigOverride() { return $this-&g

views-ui-container.html.twig

Default theme implementation for a generic views UI container/wrapper. Available variables: attributes: HTML attributes to apply to the container element. children: The remaining elements such as dropbuttons and tabs. File core/modules/views_ui/templates/views-ui-container.html.twig Related topics Theme system overview Functions and templates for the user interface that themes can override.

Random::string

public Random::string($length = 8, $unique = FALSE, $validator = NULL) Generates a random string of ASCII characters of codes 32 to 126. The generated string includes alpha-numeric characters and common miscellaneous characters. Use this method when testing general input where the content is not restricted. Parameters int $length: Length of random string to generate. bool $unique: (optional) If TRUE ensures that the random string returned is unique. Defaults to FALSE. callable $validator: (opt

LocalStream::dir_closedir

public LocalStream::dir_closedir() Support for closedir(). Return value bool TRUE on success. Overrides PhpStreamWrapperInterface::dir_closedir See also http://php.net/manual/streamwrapper.dir-closedir.php File core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 564 Class LocalStream Defines a Drupal stream wrapper base class for local files. Namespace Drupal\Core\StreamWrapper Code public function dir_closedir() { closedir($this->handle); // We do not really have a way t

BlockBase::defaultConfiguration

public BlockBase::defaultConfiguration() Gets default configuration for this plugin. Return value array An associative array with the default configuration. Overrides ConfigurablePluginInterface::defaultConfiguration File core/lib/Drupal/Core/Block/BlockBase.php, line 97 Class BlockBase Defines a base block implementation that most blocks plugins will extend. Namespace Drupal\Core\Block Code public function defaultConfiguration() { return array(); }