You are here

public static function LayoutBuilderFieldDependencyCollector::getSubscribedEvents in Dependency Calculation 8

File

src/EventSubscriber/DependencyCollector/LayoutBuilderFieldDependencyCollector.php, line 20

Class

LayoutBuilderFieldDependencyCollector
Subscribes to dependency collection to extract entities referenced on Layout Builder components.

Namespace

Drupal\depcalc\EventSubscriber\DependencyCollector

Code

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