public function YamlFormOptions::hasAlterHooks in YAML Form 8
Determine if the form options has alter hooks.
Return value
bool TRUE if the form options has alter hooks.
Overrides YamlFormOptionsInterface::hasAlterHooks
File
- src/
Entity/ YamlFormOptions.php, line 104
Class
- YamlFormOptions
- Defines the form options entity.
Namespace
Drupal\yamlform\EntityCode
public function hasAlterHooks() {
$hook_name = 'yamlform_options_' . $this
->id() . '_alter';
$alter_hooks = \Drupal::moduleHandler()
->getImplementations($hook_name);
return count($alter_hooks) ? TRUE : FALSE;
}