You are here

protected function DependencyCalculatorTest::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 DependencyCalculatorTest::getModuleDependencies()
DependencyCalculatorTest::testEntityDependencies in tests/src/Kernel/DependencyCalculatorTest.php
Tests the calculation of entity dependencies.

File

tests/src/Kernel/DependencyCalculatorTest.php, line 168

Class

DependencyCalculatorTest
Class DependencyCalculatorTest.

Namespace

Drupal\Tests\depcalc\Kernel

Code

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