public function NumericArgumentValidator::validateArgument in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/argument_validator/NumericArgumentValidator.php \Drupal\views\Plugin\views\argument_validator\NumericArgumentValidator::validateArgument()
Performs validation for a given argument.
Overrides ArgumentValidatorPluginBase::validateArgument
File
- core/
modules/ views/ src/ Plugin/ views/ argument_validator/ NumericArgumentValidator.php, line 19
Class
- NumericArgumentValidator
- Validate whether an argument is numeric or not.
Namespace
Drupal\views\Plugin\views\argument_validatorCode
public function validateArgument($argument) {
return is_numeric($argument);
}