public function WebformCliService::drush_webform_docs_validate in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Commands/WebformCliService.php \Drupal\webform\Commands\WebformCliService::drush_webform_docs_validate()
Implements drush_hook_COMMAND_validate().
Overrides WebformCliServiceInterface::drush_webform_docs_validate
File
- src/
Commands/ WebformCliService.php, line 951
Class
- WebformCliService
- Drush version agnostic commands.
Namespace
Drupal\webform\CommandsCode
public function drush_webform_docs_validate() {
if (!\Drupal::moduleHandler()
->moduleExists('readme')) {
return $this
->drush_set_error($this
->dt('The README module is required to generate HTML documentation.'));
}
if (!class_exists('\\tidy')) {
return $this
->drush_set_error($this
->dt('The HTML tidy PHP addon is required to generate HTML documentation.'));
}
}