public function DependenciesBlock::calculateDependencies in Entity Usage 8.2
Overrides BlockPluginTrait::calculateDependencies
File
- tests/
modules/ entity_usage_test/ src/ Plugin/ Block/ DependenciesBlock.php, line 38
Class
- DependenciesBlock
- Provides a block with dependencies.
Namespace
Drupal\entity_usage_test\Plugin\BlockCode
public function calculateDependencies() {
$dependencies = parent::calculateDependencies();
if ($this->configuration['dependencies']) {
$dependencies = NestedArray::mergeDeep($dependencies, $this->configuration['dependencies']);
}
return $dependencies;
}