Taxonomy indexing

Functions to maintain taxonomy indexing. Taxonomy uses default field storage to store canonical relationships between terms and fieldable entities. However its most common use case requires listing all content associated with a term or group of terms sorted by creation date. To avoid slow queries due to joining across multiple node and field tables with various conditions and order by criteria, we maintain a denormalized table with all relationships between terms, published nodes and common sor

Tasks::__construct

public Tasks::__construct() Constructs a \Drupal\Core\Database\Driver\mysql\Install\Tasks object. File core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php, line 35 Class Tasks Specifies installation tasks for MySQL and equivalent databases. Namespace Drupal\Core\Database\Driver\mysql\Install Code public function __construct() { $this->tasks[] = array( 'arguments' => array(), 'function' => 'ensureInnoDbAvailable', ); }

Tasks::__construct

public Tasks::__construct() Constructs a \Drupal\Core\Database\Driver\pgsql\Install\Tasks object. File core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php, line 23 Class Tasks Specifies installation tasks for PostgreSQL databases. Namespace Drupal\Core\Database\Driver\pgsql\Install Code public function __construct() { $this->tasks[] = array( 'function' => 'checkEncoding', 'arguments' => array(), ); $this->tasks[] = array( 'function' => 'checkBi

Tasks::name

abstract public Tasks::name() Return the human-readable name of the driver. File core/lib/Drupal/Core/Database/Install/Tasks.php, line 113 Class Tasks Database installer structure. Namespace Drupal\Core\Database\Install Code abstract public function name();

Tasks::name

public Tasks::name() Return the human-readable name of the driver. Overrides Tasks::name File core/lib/Drupal/Core/Database/Driver/sqlite/Install/Tasks.php, line 23 Class Tasks Specifies installation tasks for SQLite databases. Namespace Drupal\Core\Database\Driver\sqlite\Install Code public function name() { return t('SQLite'); }

Tasks::name

public Tasks::name() Return the human-readable name of the driver. Overrides Tasks::name File core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php, line 45 Class Tasks Specifies installation tasks for MySQL and equivalent databases. Namespace Drupal\Core\Database\Driver\mysql\Install Code public function name() { return t('MySQL, MariaDB, Percona Server, or equivalent'); }

Tasks::runTasks

public Tasks::runTasks() Run database tasks and tests to see if Drupal can run on the database. Return value array A list of error messages. File core/lib/Drupal/Core/Database/Install/Tasks.php, line 132 Class Tasks Database installer structure. Namespace Drupal\Core\Database\Install Code public function runTasks() { // We need to establish a connection before we can run tests. if ($this->connect()) { foreach ($this->tasks as $task) { if (!isset($task['function']))

Tasks::pass

protected Tasks::pass($message) Assert test as a pass. File core/lib/Drupal/Core/Database/Install/Tasks.php, line 99 Class Tasks Database installer structure. Namespace Drupal\Core\Database\Install Code protected function pass($message) { $this->results['pass'][] = $message; }

Tasks::validateDatabaseSettings

public Tasks::validateDatabaseSettings($database) Validates driver specific configuration settings. Checks to ensure correct basic database settings and that a proper connection to the database can be established. Parameters $database: An array of driver specific configuration options. Return value An array of driver configuration errors, keyed by form element name. File core/lib/Drupal/Core/Database/Install/Tasks.php, line 289 Class Tasks Database installer structure. Namespace Drupa

Tasks::minimumVersion

public Tasks::minimumVersion() Return the minimum required version of the engine. Return value A version string. If not NULL, it will be checked against the version reported by the Database engine using version_compare(). File core/lib/Drupal/Core/Database/Install/Tasks.php, line 122 Class Tasks Database installer structure. Namespace Drupal\Core\Database\Install Code public function minimumVersion() { return NULL; }