You are here

public function WebformCliService::drush_webform_purge_validate in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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 453

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);
}