diff --git a/core/modules/filter/lib/Drupal/filter/FilterFormatInterface.php b/core/modules/filter/lib/Drupal/filter/FilterFormatInterface.php
index 6b598cc..7e21e43 100644
--- a/core/modules/filter/lib/Drupal/filter/FilterFormatInterface.php
+++ b/core/modules/filter/lib/Drupal/filter/FilterFormatInterface.php
@@ -49,4 +49,80 @@ public function setFilterConfig($instance_id, array $configuration);
    */
   public function isFallbackFormat();
 
+  /**
+   * 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);
+
 }
diff --git a/core/modules/filter/lib/Drupal/filter/Plugin/Core/Entity/FilterFormat.php b/core/modules/filter/lib/Drupal/filter/Plugin/Core/Entity/FilterFormat.php
index a853bb6..654134f 100644
--- a/core/modules/filter/lib/Drupal/filter/Plugin/Core/Entity/FilterFormat.php
+++ b/core/modules/filter/lib/Drupal/filter/Plugin/Core/Entity/FilterFormat.php
@@ -139,6 +139,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);
