You are here

public static function ModuleDependencyCollector::getSubscribedEvents in Dependency Calculation 8

File

src/EventSubscriber/LayoutBuilderComponentDepencyCollector/ModuleDependencyCollector.php, line 18

Class

ModuleDependencyCollector
Subscribes to layout builder dependency collection to extract module dependencies.

Namespace

Drupal\depcalc\EventSubscriber\LayoutBuilderComponentDepencyCollector

Code

public static function getSubscribedEvents() {
  $events[DependencyCalculatorEvents::SECTION_COMPONENT_DEPENDENCIES_EVENT][] = [
    'onCalculateSectionComponentDependencies',
  ];
  return $events;
}