By andypost on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
As a part of #1802750: [Meta] Convert configurable data to ConfigEntity system
The {taxonomy_vocabulary} table is deprecated in favor of a new taxonomy_vocabulary config entity, but the table is preserved in installations upgraded from earlier versions of Drupal to allow contrib modules to migrate their data.
The vid column the {taxonomy_term_data} table is changed:
D7 {taxonomy_term_data}.vid
| D8 {taxonomy_term_data}.vid
|
|---|---|
|
|
Functions removed:
taxonomy_vocabulary_machine_name_load(), useVocabulary::load($vid)- views argument and filter for
machine_name, usevidinstead
To access a vocabulary's base properties use class methods $vocabulary->id() and $vocabulary->label()
// D7 code
$vocabulary = taxonomy_vocabulary_machine_name_load('forums');
$options[$vocabulary->vid] = $vocabulary->name;
// D8 code
use Drupal\taxonomy\Entity\Vocabulary;
$vocabulary = Vocabulary::load('forums');
$options[$vocabulary->id()] = $vocabulary->label();
Impacts:
Site builders, administrators, editors
Module developers
Themers