Index.php

Same filename in this branch
  1. 11.x index.php
  2. 11.x core/tests/Drupal/Tests/Composer/Plugin/Scaffold/fixtures/drupal-assets-fixture/assets/index.php
  3. 11.x core/assets/scaffold/files/index.php
Same filename and directory in other branches
  1. 10 index.php
  2. 10 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/fixtures/drupal-assets-fixture/assets/index.php
  3. 10 core/assets/scaffold/files/index.php
  4. 9 index.php
  5. 9 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/fixtures/drupal-assets-fixture/assets/index.php
  6. 9 core/assets/scaffold/files/index.php
  7. 8.9.x index.php
  8. 8.9.x core/tests/Drupal/Tests/Composer/Plugin/Scaffold/fixtures/drupal-assets-fixture/assets/index.php
  9. 8.9.x core/assets/scaffold/files/index.php
  10. 7.x index.php
  11. 7.x external_documentation/developer/index.php
  12. main index.php
  13. main core/tests/Drupal/Tests/Composer/Plugin/Scaffold/fixtures/drupal-assets-fixture/assets/index.php
  14. main core/assets/scaffold/files/index.php

Namespace

Drupal\Core\Database\SchemaDefinition

File

core/lib/Drupal/Core/Database/SchemaDefinition/Index.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Core\Database\SchemaDefinition;


/**
 * Describes a database index.
 */
final class Index extends KeyBase {
  
  /**
   * Constructor.
   *
   * @param string $name
   *   The index name.
   * @param list<KeyColumn|string|array{0:string, 1:int}> $columns
   *   A mix of key column specifiers, being KeyColumn objects, strings naming
   *   columns, or arrays of two elements, column name and length, specifying a
   *   prefix of the named column.
   */
  public function __construct(public readonly string $name, array $columns) {
    parent::__construct($columns, TRUE);
  }

}

Classes

Title Deprecated Summary
Index Describes a database index.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.