Code Duplication    Length = 8-8 lines in 2 locations

src/Plugin/EntityBrowser/SelectionDisplay/View.php 1 location

@@ 124-131 (lines=8) @@
121
  /**
122
   * {@inheritdoc}
123
   */
124
  public function calculateDependencies() {
125
    $dependencies = [];
126
    if ($this->configuration['view']) {
127
      $view = ViewEntity::load($this->configuration['view']);
128
      $dependencies[$view->getConfigDependencyKey()] = [$view->getConfigDependencyName()];
129
    }
130
    return $dependencies;
131
  }
132
133
}
134

src/Plugin/EntityBrowser/Widget/View.php 1 location

@@ 274-281 (lines=8) @@
271
  /**
272
   * {@inheritdoc}
273
   */
274
  public function calculateDependencies() {
275
    $dependencies = [];
276
    if ($this->configuration['view']) {
277
      $view = ViewEntity::load($this->configuration['view']);
278
      $dependencies[$view->getConfigDependencyKey()] = [$view->getConfigDependencyName()];
279
    }
280
    return $dependencies;
281
  }
282
283
  /**
284
   * {@inheritdoc}