protected function DependencyCalculatorTest::getEntityDependencies in Dependency Calculation 8
Returns the list of entity dependencies.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity.
Return value
array The list of UUIDs of dependencies (entities).
Throws
\Exception
1 call to DependencyCalculatorTest::getEntityDependencies()
- DependencyCalculatorTest::testEntityDependencies in tests/
src/ Kernel/ DependencyCalculatorTest.php - Tests the calculation of entity dependencies.
File
- tests/
src/ Kernel/ DependencyCalculatorTest.php, line 151
Class
- DependencyCalculatorTest
- Class DependencyCalculatorTest.
Namespace
Drupal\Tests\depcalc\KernelCode
protected function getEntityDependencies(EntityInterface $entity) {
$wrapper = $this
->getDependentEntityWrapper($entity);
return array_keys($wrapper
->getDependencies());
}