StatementInterface::fetchCol

public StatementInterface::fetchCol($index = 0) Returns an entire single column of a result set as an indexed array. Note that this method will run the result set to the end. Parameters $index: The index of the column number to fetch. Return value An indexed array, or an empty array if there is no result set. File core/lib/Drupal/Core/Database/StatementInterface.php, line 171 Class StatementInterface Represents a prepared statement. Namespace Drupal\Core\Database Code public function

DatabaseBackend::schemaDefinition

public DatabaseBackend::schemaDefinition() Defines the schema for the {cache_*} bin tables. File core/lib/Drupal/Core/Cache/DatabaseBackend.php, line 421 Class DatabaseBackend Defines a default cache implementation. Namespace Drupal\Core\Cache Code public function schemaDefinition() { $schema = array( 'description' => 'Storage for the cache API.', 'fields' => array( 'cid' => array( 'description' => 'Primary Key: Unique cache ID.', 'type' =>

DatabaseStorage::$connection

The database connection. Type: \Drupal\Core\Database\Connection File core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php, line 32 Class DatabaseStorage Defines a default key/value store implementation. Namespace Drupal\Core\KeyValueStore Code protected $connection;

CommentInterface::getCommentedEntityId

public CommentInterface::getCommentedEntityId() Returns the ID of the entity to which the comment is attached. Return value int The ID of the entity to which the comment is attached. File core/modules/comment/src/CommentInterface.php, line 54 Class CommentInterface Provides an interface defining a comment entity. Namespace Drupal\comment Code public function getCommentedEntityId();

VocabularyInterface::getHierarchy

public VocabularyInterface::getHierarchy() Returns the vocabulary hierarchy. Return value int The vocabulary hierarchy. File core/modules/taxonomy/src/VocabularyInterface.php, line 33 Class VocabularyInterface Provides an interface defining a taxonomy vocabulary entity. Namespace Drupal\taxonomy Code public function getHierarchy();

DrupalKernel::getContainerBuilder

protected DrupalKernel::getContainerBuilder() Gets a new ContainerBuilder instance used to build the service container. Return value ContainerBuilder File core/lib/Drupal/Core/DrupalKernel.php, line 1286 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code protected function getContainerBuilder() { return new ContainerBuilder(new ParameterBag($this->getKernelParameters())); }

DatabaseStorage::setIfNotExists

public DatabaseStorage::setIfNotExists($key, $value) Saves a value for a given key if it does not exist yet. Parameters string $key: The key of the data to store. mixed $value: The data to store. Return value bool TRUE if the data was set, FALSE if it already existed. Overrides KeyValueStoreInterface::setIfNotExists File core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php, line 122 Class DatabaseStorage Defines a default key/value store implementation. Namespace Drupal\Core\KeyValu

Schema::dropPrimaryKey

public Schema::dropPrimaryKey($table) Drop the primary key. Parameters $table: The table to be altered. Return value TRUE if the primary key was successfully dropped, FALSE if there was no primary key on this table to begin with. Overrides Schema::dropPrimaryKey File core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php, line 632 Class Schema PostgreSQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\pgsql Code public function dropPrimaryKey($tab

ResponsePolicyInterface

Defines the interface for response policy implementations. The response policy is evaluated in order to determine whether a page should be stored a in the cache. Calling code should do so unless static::DENY is returned from the check() method. Hierarchy interface \Drupal\Core\PageCache\ResponsePolicyInterface File core/lib/Drupal/Core/PageCache/ResponsePolicyInterface.php, line 15 Namespace Drupal\Core\PageCache Members Name Modifiers Type Description ResponsePolicyInterface:

EntityTypeInterface::setFormClass

public EntityTypeInterface::setFormClass($operation, $class) Sets a form class for a specific operation. Parameters string $operation: The operation to use this form class for. string $class: The form class implementing \Drupal\Core\Entity\EntityFormInterface. Return value $this See also \Drupal\Core\Entity\EntityFormBuilderInterface File core/lib/Drupal/Core/Entity/EntityTypeInterface.php, line 258 Class EntityTypeInterface Provides an interface for an entity type and its metadata. N