You are here

public function DependentEntityWrapper::addModuleDependencies in Dependency Calculation 8

Add new module dependencies.

Parameters

array $modules: The list of modules to add as dependencies.

Overrides DependentEntityWrapperInterface::addModuleDependencies

1 call to DependentEntityWrapper::addModuleDependencies()
DependentEntityWrapper::addDependency in src/DependentEntityWrapper.php
Document a new dependency for this entity.

File

src/DependentEntityWrapper.php, line 202

Class

DependentEntityWrapper
An entity wrapper class for finding and tracking dependencies of an entity.

Namespace

Drupal\depcalc

Code

public function addModuleDependencies(array $modules) {
  $this->modules = array_values(array_unique(NestedArray::mergeDeep($this->modules, $modules)));
}