public function WebformBlock::calculateDependencies in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/Block/WebformBlock.php \Drupal\webform\Plugin\Block\WebformBlock::calculateDependencies()
Overrides BlockPluginTrait::calculateDependencies
File
- src/
Plugin/ Block/ WebformBlock.php, line 230
Class
- WebformBlock
- Provides a 'Webform' block.
Namespace
Drupal\webform\Plugin\BlockCode
public function calculateDependencies() {
$dependencies = parent::calculateDependencies();
if ($webform = $this
->getWebform()) {
$dependencies[$webform
->getConfigDependencyKey()][] = $webform
->getConfigDependencyName();
}
return $dependencies;
}