public function WebformBlock::calculateDependencies in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/Block/WebformBlock.php \Drupal\webform\Plugin\Block\WebformBlock::calculateDependencies()
Overrides BlockPluginTrait::calculateDependencies
File
- src/
Plugin/ Block/ WebformBlock.php, line 255
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;
}