diff --git a/core/modules/field/src/Entity/FieldConfig.php b/core/modules/field/src/Entity/FieldConfig.php
index 3f5b787..8782f96 100644
--- a/core/modules/field/src/Entity/FieldConfig.php
+++ b/core/modules/field/src/Entity/FieldConfig.php
@@ -520,6 +520,14 @@ public function getType() {
     return $this->type;
   }
 
+
+  /**
+   * @return string $this->module
+   */
+  public function getModule() {
+    return $this->module;
+  }
+
   /**
    * {@inheritdoc}
    */
@@ -554,6 +562,58 @@ public function getSetting($setting_name) {
   }
 
   /**
+   * Sets a single setting by key
+   *
+   * @param string $setting_name
+   *   The setting name to change
+   * @param array $settings
+   *   The array of settings to store
+   *
+   * @return $this
+   *
+   */
+  public function setSetting($setting_name, array $settings) {
+    $this->settings[$setting_name] = $settings;
+    return $this;
+  }
+
+
+  /**
+   * Overwrite all settings
+   *
+   * @param array $settings
+   *   The array of settings to store
+   *
+   * @return $this
+   *
+   */
+  public function setSettings(array $settings) {
+    $this->settings = $settings;
+    return $this;
+  }
+
+  /**
+   * @return array $this->indexes
+   */
+  public function getIndexes() {
+    return $this->indexes;
+  }
+
+  /**
+   * Overwrite indexes
+   *
+   * @param array $indexes
+   *   The array of indexes to store
+   *
+   * @return $this
+   *
+   */
+  public function setIndexes(array $indexes) {
+    $this->indexes = $indexes;
+    return $this;
+  }
+
+  /**
    * {@inheritdoc}
    */
   public function isTranslatable() {
@@ -610,6 +670,19 @@ public function getCardinality() {
   }
 
   /**
+   * Sets the field config cardinality.
+   *
+   * @param string $cardinality
+   *   The field config cardinality.
+   */
+  public function setCardinality($cardinality) {
+    // uses the ConfigEntityBase setter to pass setting
+    // through to plugins if necessary.
+    $this->set('cardinality', $cardinality);
+    return $this;
+  }
+
+  /**
    * {@inheritdoc}
    */
   public function isRequired() {
@@ -631,6 +704,14 @@ public function isLocked() {
     return $this->locked;
   }
 
+  public function lock() {
+    $this->locked = TRUE;
+  }
+
+  public function unlock() {
+    $this->locked = FALSE;
+  }
+
   /**
    * {@inheritdoc}
    */
