Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / views / src / Plugin / views / relationship / RelationshipPluginBase.php
index 860189175c524c6bfb7a1fa7162f7622a6eda7c5..01469727d5654f2f21e475f371e6a187c094591b 100644 (file)
@@ -169,11 +169,11 @@ abstract class RelationshipPluginBase extends HandlerBase {
    * {@inheritdoc}
    */
   public function calculateDependencies() {
+    $dependencies = parent::calculateDependencies();
     // Add the provider of the relationship's base table to the dependencies.
     $table_data = $this->getViewsData()->get($this->definition['base']);
-    return [
-      'module' => [$table_data['table']['provider']],
-    ];
+    $dependencies['module'][] = $table_data['table']['provider'];
+    return $dependencies;
   }
 
 }