diff --git a/core/modules/filter/lib/Drupal/filter/Entity/FilterFormat.php b/core/modules/filter/lib/Drupal/filter/Entity/FilterFormat.php
index 45033e9..c8619f4 100644
--- a/core/modules/filter/lib/Drupal/filter/Entity/FilterFormat.php
+++ b/core/modules/filter/lib/Drupal/filter/Entity/FilterFormat.php
@@ -143,6 +143,66 @@ public function id() {
   /**
    * {@inheritdoc}
    */
+  public function getWeight() {
+    return $this->weight;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getRoles() {
+    return $this->roles;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getCache() {
+    return $this->cache;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getFilterBag() {
+    return $this->filterBag;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function setWeight($newWeight) {
+    $weight = $newWeight;
+    return this;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function setRoles($newRoles) {
+    $roles = $newRoles;
+    return this;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function setCache($newCache) {
+    $cache = $newCache;
+    return this;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function setFilterBag($newFilterBag) {
+    $filterBag = $newFilterBag;
+    return this;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
   public function filters($instance_id = NULL) {
     if (!isset($this->filterBag)) {
       $this->filterBag = new FilterBag(\Drupal::service('plugin.manager.filter'), $this->filters);
diff --git a/core/modules/filter/lib/Drupal/filter/FilterFormatInterface.php b/core/modules/filter/lib/Drupal/filter/FilterFormatInterface.php
index 77fad0c..f94db8b 100644
--- a/core/modules/filter/lib/Drupal/filter/FilterFormatInterface.php
+++ b/core/modules/filter/lib/Drupal/filter/FilterFormatInterface.php
@@ -57,5 +57,80 @@ public function isFallbackFormat();
    *   malformed or is the fallback format (which is available to all users).
    */
   public function getPermissionName();
+  /**
+   * Returns the weight of the format in the text format selector.
+   *
+   * @return int
+   *   The weight of this format.
+   */
+  public function getWeight();
+
+  /**
+   * Returns the list of user role IDS.
+   *
+   * @return array
+   *   The role ID list.
+   */
+  public function getRoles();
+
+  /**
+   * Returns the cache value (whether processed text of this format can be cached).
+   *
+   * @return bool
+   *   The cache value
+   */
+  public function getCache();
+
+  /**
+   * Returns the format's FilterBag (holds the collection of filters that are attached to this format).
+   *
+   * @return \Drupal\filter\FilterBag
+   *   The form
+   */
+  public function getFilterBag();
+
+  /**
+   * Sets the weight to the given value.
+   *
+   * @param int $newWeight
+   *   The desired weight.
+   *
+   * @return \Drupal\filter\FilterFormatInterface
+   *   The class instance this method is called on.
+   */
+  public function setWeight($newWeight);
+
+  /**
+   * Sets the list of user role IDs to the given array.
+   *
+   * @param array $newRoles
+   *   The desired user role ID array.
+   *
+   * @return \Drupal\filter\FilterFormatInterface
+   *   The class instance this method is called on.
+   */
+  public function setRoles($newRoles);
+
+  /**
+   * Sets the cache value (whether or not text of this format can be cached).
+   *
+   * @param bool $newCache
+   *   The desired cache value.
+   *
+   * @return \Drupal\filter\FilterFormatInterface
+   *   The class instance this method is called on.
+   */
+  public function setCache($newCache);
+
+  /**
+   * Sets the format's FilterBag to the given parameter.
+   *
+   * @param \Drupal\filter\FilterBag $newFilterBag
+   *   The desired FilterBag.
+   *
+   * @return \Drupal\filter\FilterFormatInterface
+   *   The class instance this method is called on.
+   */
+  public function setFilterBag($newFilterBag);
 
 }
