protected function YamlFormBlock::getYamlForm in YAML Form 8
Get this block instance form.
Return value
\Drupal\yamlform\YamlFormInterface A form or NULL.
2 calls to YamlFormBlock::getYamlForm()
- YamlFormBlock::blockAccess in src/
Plugin/ Block/ YamlFormBlock.php - Indicates whether the block should be shown.
- YamlFormBlock::blockForm in src/
Plugin/ Block/ YamlFormBlock.php
File
- src/
Plugin/ Block/ YamlFormBlock.php, line 143
Class
- YamlFormBlock
- Provides a 'Form' block.
Namespace
Drupal\yamlform\Plugin\BlockCode
protected function getYamlForm() {
return YamlForm::load($this->configuration['yamlform_id']);
}