Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / config / tests / config_test / src / Entity / ConfigTest.php
index ee0e35a2cd6f8041b7ffe85fa9af464f3e304a22..d1a7249bede978e8901c35524d7dfc98ef09fefe 100644 (file)
@@ -113,6 +113,17 @@ class ConfigTest extends ConfigEntityBase implements ConfigTestInterface {
     }
   }
 
+  /**
+   * {@inheritdoc}
+   */
+  public function calculateDependencies() {
+    parent::calculateDependencies();
+    if ($module = \Drupal::state()->get('config_test_new_dependency', FALSE)) {
+      $this->addDependency('module', $module);
+    }
+    return $this;
+  }
+
   /**
    * {@inheritdoc}
    */