You are here

protected function VocabularyConfiguration::prepareBuild in Configuration Management 7.2

Implements Drupal\configuration\Config\Configuration::prepareBuild().

Overrides Configuration::prepareBuild

File

lib/Drupal/configuration/Config/VocabularyConfiguration.php, line 94
Definition of Drupal\configuration\Config\VocabularyConfiguration.

Class

VocabularyConfiguration

Namespace

Drupal\configuration\Config

Code

protected function prepareBuild() {
  $vocabularies = taxonomy_get_vocabularies();
  foreach ($vocabularies as $vocabulary) {
    if ($vocabulary->machine_name == $this
      ->getIdentifier()) {
      $this->data = $vocabulary;
      break;
    }
  }
  return $this;
}