public function WebformCliService::drush_webform_docs_validate in Webform 8.5
Same name and namespace in other branches
- 6.x 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 929
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.'));
}
}