You are here

function Numeric::validate_argument in Views (for Drupal 7) 8.3

Overrides ArgumentValidatorPluginBase::validate_argument

File

lib/Drupal/views/Plugin/views/argument_validator/Numeric.php, line 25
Definition of Drupal\views\Plugin\views\argument_validator\Numeric.

Class

Numeric
Validate whether an argument is numeric or not.

Namespace

Drupal\views\Plugin\views\argument_validator

Code

function validate_argument($argument) {
  return is_numeric($argument);
}