You are here

public function WebformCliService::drush_webform_purge_validate in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Commands/WebformCliService.php \Drupal\webform\Commands\WebformCliService::drush_webform_purge_validate()

Implements drush_hook_COMMAND_validate().

Overrides WebformCliServiceInterface::drush_webform_purge_validate

File

src/Commands/WebformCliService.php, line 452

Class

WebformCliService
Drush version agnostic commands.

Namespace

Drupal\webform\Commands

Code

public function drush_webform_purge_validate($webform_id = NULL) {

  // If webform id is set to 'all' or not included skip validation.
  if ($this
    ->drush_get_option('all') || $webform_id === NULL) {
    return;
  }
  return $this
    ->_drush_webform_validate($webform_id);
}