You are here

public function SectionComponentDependenciesEvent::addModuleDependency in Dependency Calculation 8

Adds a module as dependency.

Parameters

string $module: The module.

File

src/Event/SectionComponentDependenciesEvent.php, line 91

Class

SectionComponentDependenciesEvent
The SectionComponentDependenciesEvent event.

Namespace

Drupal\depcalc\Event

Code

public function addModuleDependency(string $module) {
  $this->moduleDependencies[] = $module;
}