protected function WebformSanitizeSubmissionsCommands::isEnabled in Webform 8.5
Same name and namespace in other branches
- 6.x 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\CommandsCode
protected function isEnabled($value) {
return $value !== 'no';
}