protected function WebformBlock::getWebform in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/Block/WebformBlock.php \Drupal\webform\Plugin\Block\WebformBlock::getWebform()
Get this block instance webform.
Return value
\Drupal\webform\WebformInterface A webform or NULL.
4 calls to WebformBlock::getWebform()
- WebformBlock::blockAccess in src/
Plugin/ Block/ WebformBlock.php - Indicates whether the block should be shown.
- WebformBlock::blockForm in src/
Plugin/ Block/ WebformBlock.php - WebformBlock::build in src/
Plugin/ Block/ WebformBlock.php - Builds and returns the renderable array for this block plugin.
- WebformBlock::calculateDependencies in src/
Plugin/ Block/ WebformBlock.php
File
- src/
Plugin/ Block/ WebformBlock.php, line 246
Class
- WebformBlock
- Provides a 'Webform' block.
Namespace
Drupal\webform\Plugin\BlockCode
protected function getWebform() {
return $this->entityTypeManager
->getStorage('webform')
->load($this->configuration['webform_id']);
}