You are here

protected function WebformSanitizeSubmissionsCommands::isEnabled in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Commands/WebformSanitizeSubmissionsCommands.php \Drupal\webform\Commands\WebformSanitizeSubmissionsCommands::isEnabled()

Test an option value to see if it is disabled.

Parameters

string $value: The enabled options value.

Return value

bool TRUE if santize websubmission is enabled.

2 calls to WebformSanitizeSubmissionsCommands::isEnabled()
WebformSanitizeSubmissionsCommands::messages in src/Commands/WebformSanitizeSubmissionsCommands.php
@hook on-event sql-sanitize-confirms
WebformSanitizeSubmissionsCommands::sanitize in src/Commands/WebformSanitizeSubmissionsCommands.php
Sanitize webform submissions from the DB.

File

src/Commands/WebformSanitizeSubmissionsCommands.php, line 106

Class

WebformSanitizeSubmissionsCommands
Drush sql-sanitize plugin for sanitizing (truncating) webform submissions.

Namespace

Drupal\webform\Commands

Code

protected function isEnabled($value) {
  return $value !== 'no';
}