public function WebformCliService::drush_webform_libraries_status in Webform 8.5
Same name and namespace in other branches
- 6.x src/Commands/WebformCliService.php \Drupal\webform\Commands\WebformCliService::drush_webform_libraries_status()
Implements drush_hook_COMMAND().
Overrides WebformCliServiceInterface::drush_webform_libraries_status
File
- src/
Commands/ WebformCliService.php, line 673
Class
- WebformCliService
- Drush version agnostic commands.
Namespace
Drupal\webform\CommandsCode
public function drush_webform_libraries_status() {
module_load_include('install', 'webform');
/** @var \Drupal\webform\WebformLibrariesManagerInterface $libraries_manager */
$libraries_manager = \Drupal::service('webform.libraries_manager');
$requirements = $libraries_manager
->requirements();
$description = $requirements['webform_libraries']['description'];
$description = strip_tags($description, '<dt><dd><dl>');
$description = MailFormatHelper::htmlToText($description);
$this
->drush_print($description);
}