private function EntityReferenceFieldDependencyCollectorTest::calculateDependencies in Dependency Calculation 8
Calculates dependencies for the given node.
Parameters
\Drupal\node\NodeInterface $node: Node.
Return value
array Dependencies array.
Throws
\Exception
1 call to EntityReferenceFieldDependencyCollectorTest::calculateDependencies()
- EntityReferenceFieldDependencyCollectorTest::testDependenciesCollection in tests/
src/ Kernel/ EventSubscriber/ DependencyCollector/ EntityReferenceFieldDependencyCollectorTest.php - Tests dependencies calculation for an entity reference field.
File
- tests/
src/ Kernel/ EventSubscriber/ DependencyCollector/ EntityReferenceFieldDependencyCollectorTest.php, line 136
Class
- EntityReferenceFieldDependencyCollectorTest
- Class EntityReferenceFieldDependencyCollectorTest.
Namespace
Drupal\Tests\depcalc\Kernel\EventSubscriber\DependencyCollectorCode
private function calculateDependencies(NodeInterface $node) : array {
$wrapper = new DependentEntityWrapper($node);
return $this->calculator
->calculateDependencies($wrapper, new DependencyStack());
}