You are here

protected function DependencyHelperTrait::getModuleDependencies in Dependency Calculation 8

Returns the list of module dependencies.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity object.

Return value

array The list of UUIDs of entity dependencies.

Throws

\Exception

1 call to DependencyHelperTrait::getModuleDependencies()
LayoutBuilderDependencyCalculatorTest::testEntityDependencies in tests/src/Kernel/EventSubscriber/LayoutBuilderDependencyCalculatorTest.php
Tests the calculation of Layout Builder dependencies.

File

tests/src/Kernel/DependencyHelperTrait.php, line 47

Class

DependencyHelperTrait

Namespace

Drupal\Tests\depcalc\Kernel

Code

protected function getModuleDependencies(EntityInterface $entity) {
  $wrapper = $this
    ->getDependentEntityWrapper($entity);
  return $wrapper
    ->getModuleDependencies();
}