You are here

Deprecated in Zircon Profile 8

Primary tabs

Examples: "before Drupal 9", "in Drupal 8.4"
Namesort descending Location Type Deprecation Direct uses Namespaced uses Overrides Use statements
ConfigurableEntityReferenceItem core/modules/entity_reference/src/ConfigurableEntityReferenceItem.php class in Drupal 8.0.x and will be removed in Drupal 9.0.x. Use \Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem instead.
CONFIG_ACTIVE_DIRECTORY core/includes/bootstrap.inc constant in Drupal 8.0.x and will be removed before 9.0.0. Drupal core no longer creates an active directory. 3
CONFIG_STAGING_DIRECTORY core/includes/bootstrap.inc constant in Drupal 8.0.x and will be removed before 9.0.0. The staging directory was renamed to sync. 1
ConstraintValidator::buildViolation vendor/symfony/validator/ConstraintValidator.php function since version 2.5, to be removed in 3.0.
ConstraintValidator::buildViolationInContext vendor/symfony/validator/ConstraintValidator.php function since version 2.5, to be removed in 3.0.
ConstraintViolation::getMessageParameters vendor/symfony/validator/ConstraintViolation.php function since version 2.7, to be removed in 3.0. Use getParameters() instead
ConstraintViolation::getMessagePluralization vendor/symfony/validator/ConstraintViolation.php function since version 2.7, to be removed in 3.0. Use getPlural() instead
ConstraintViolationInterface::getMessageParameters vendor/symfony/validator/ConstraintViolationInterface.php function since version 2.7, to be replaced by getParameters() in 3.0. 1
ConstraintViolationInterface::getMessagePluralization vendor/symfony/validator/ConstraintViolationInterface.php function since version 2.7, to be replaced by getPlural() in 3.0. 1
ContainerAwareHttpKernel vendor/symfony/http-kernel/DependencyInjection/ContainerAwareHttpKernel.php class since version 2.7, to be removed in 3.0. 1
ContainerBuilder::synchronize vendor/symfony/dependency-injection/ContainerBuilder.php function since version 2.7, will be removed in 3.0. 1
ControllerBase::entityManager core/lib/Drupal/Core/Controller/ControllerBase.php function in Drupal 8.0.0, will be removed before Drupal 9.0.0. Most of the time static::entityTypeManager() is supposed to be used instead. 1 1
DateTimeFormatterStrategy vendor/zendframework/zend-stdlib/src/Hydrator/Strategy/DateTimeFormatterStrategy.php class Use Zend\Hydrator\Strategy\DateTimeFormatterStrategy from zendframework/zend-hydrator instead.
db_add_field core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call addField() on it. E.g. $injected_database->schema()->addField($table, $field, $spec, $keys_new); 3
db_add_index core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call addIndex() on it. E.g. $injected_database->schema()->addIndex($table, $name, $fields, $spec); 2
db_add_primary_key core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call addPrimaryKey() on it. E.g. $injected_database->schema()->addPrimaryKey($table, $fields);
db_add_unique_key core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call addUniqueKey() on it. E.g. $injected_database->schema()->addUniqueKey($table, $name, $fields);
db_and core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Create a \Drupal\Core\Database\Query\Condition object, specifying an AND conjunction: new Condition('AND'); 7
db_change_field core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call changeField() on it. E.g. $injected_database->schema()->changeField($table, $field, $field_new, $spec, $keys_new); 2
db_close core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Use \Drupal\Core\Database\Database::closeConnection($target). 1
db_condition core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Create a \Drupal\Core\Database\Query\Condition object, specifying the desired conjunction: new Condition($conjunctin);
db_create_table core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call createTable() on it. E.g. $injected_database->schema()->createTable($name, $table); 8
db_delete core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container and call delete() on it. E.g. $injected_database->delete($table, $options); 2
db_driver core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container and call driver() on it. E.g. $injected_database->driver($string);
db_drop_field core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call dropField() on it. E.g. $injected_database->schema()->dropField($table, $field); 1
db_drop_index core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call dropIndex() on it. E.g. $injected_database->schema()->dropIndex($table, $name);
db_drop_primary_key core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call dropPrimaryKey() on it. E.g. $injected_database->schema()->dropPrimaryKey($table);
db_drop_table core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call dropTable() on it. E.g. $injected_database->schema()->dropTable($table); 5
db_drop_unique_key core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call dropUniqueKey() on it. E.g. $injected_database->schema()->dropUniqueKey($table, $name);
db_escape_field core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container and call escapeTable() on it. E.g. $injected_database->escapeTable($table);
db_escape_table core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container and call escapeTable() on it. E.g. $injected_database->escapeTable($table);
db_field_exists core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call fieldExists() on it. E.g. $injected_database->schema()->fieldExists($table, $field); 3
db_field_names core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call fieldNames() on it. E.g. $injected_database->schema()->fieldNames($fields);
db_field_set_default core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call fieldSetDefault() on it. E.g. $injected_database->schema()->fieldSetDefault($table, $field, $default); 1
db_field_set_no_default core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call fieldSetNoDefault() on it. E.g. $injected_database->schema()->fieldSetNoDefault($table, $field); 1
db_find_tables core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call findTables() on it. E.g. $injected_database->schema()->findTables($table_expression); 2
db_index_exists core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call indexExists() on it. E.g. $injected_database->schema()->indexExists($table, $name); 4
db_insert core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container and call insert() on it. E.g. $injected_database->insert($table, $options); 4
db_like core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container and call escapeLike() on it. E.g. $injected_database->escapeLike($string); 15
db_merge core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container and call merge() on it. E.g. $injected_database->merge($table, $options);
db_next_id core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container and call nextId() on it. E.g. $injected_database->nextId($existing_id); 2
db_or core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Create a \Drupal\Core\Database\Query\Condition object, specifying an OR conjunction: new Condition('OR'); 14
db_query core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container and call query() on it. E.g. $injected_database->query($query, $args, $options); 33
db_query_range core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container and call queryRange() on it. E.g. $injected_database->queryRange($query, $from, $count, $args, $options); 3
db_query_temporary core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container and call queryTemporary() on it. E.g. $injected_database->queryTemporary($query, $args, $options); 2
db_rename_table core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call renameTable() on it. E.g. $injected_database->schema()->renameTable($table, $new_name); 1
db_select core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container and call select() on it. E.g. $injected_database->select($table, $alias, $options); 61
db_set_active core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Use \Drupal\Core\Database\Database::setActiveConnection(). 5
db_table_exists core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call tableExists() on it. E.g. $injected_database->schema()->tableExists($table); 11
db_transaction core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container and call startTransaction() on it. E.g. $injected_database->startTransaction($name); 5

Pages

Other projects