You are here

public function NumericArgumentValidator::validateArgument in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/argument_validator/NumericArgumentValidator.php \Drupal\views\Plugin\views\argument_validator\NumericArgumentValidator::validateArgument()

Overrides ArgumentValidatorPluginBase::validateArgument

File

core/modules/views/src/Plugin/views/argument_validator/NumericArgumentValidator.php, line 22
Contains \Drupal\views\Plugin\views\argument_validator\NumericArgumentValidator.

Class

NumericArgumentValidator
Validate whether an argument is numeric or not.

Namespace

Drupal\views\Plugin\views\argument_validator

Code

public function validateArgument($argument) {
  return is_numeric($argument);
}