diff --git a/core/modules/taxonomy/src/Entity/Vocabulary.php b/core/modules/taxonomy/src/Entity/Vocabulary.php
index 2855c65..01ba59f 100644
--- a/core/modules/taxonomy/src/Entity/Vocabulary.php
+++ b/core/modules/taxonomy/src/Entity/Vocabulary.php
@@ -125,6 +125,21 @@ public function getDescription() {
   /**
    * {@inheritdoc}
    */
+  public function getWeight() {
+    return $this->get('weight')->value;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function setWeight($weight) {
+    $this->set('weight', $weight);
+    return $this;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
   public function postSave(EntityStorageInterface $storage, $update = TRUE) {
     parent::postSave($storage, $update);
 
diff --git a/core/modules/taxonomy/src/VocabularyInterface.php b/core/modules/taxonomy/src/VocabularyInterface.php
index 78b38d7..c917d96 100644
--- a/core/modules/taxonomy/src/VocabularyInterface.php
+++ b/core/modules/taxonomy/src/VocabularyInterface.php
@@ -37,6 +37,24 @@ public function getHierarchy();
   public function setHierarchy($hierarchy);
 
   /**
+   * Returns the weight of vocabulary.
+   *
+   * @return int
+   *   The vocabulary weight.
+   */
+  public function getWeight();
+
+  /**
+   * Gets the weight of vocabulary.
+   *
+   * @param int $weight
+   *   The vocabulary weight.
+   *
+   * @return $this
+   */
+  public function setWeight($weight);
+
+  /**
    * Returns the vocabulary description.
    *
    * @return string
