function NumericArgumentValidator::getContextDefinition
Same name in other branches
- 9 core/modules/views/src/Plugin/views/argument_validator/NumericArgumentValidator.php \Drupal\views\Plugin\views\argument_validator\NumericArgumentValidator::getContextDefinition()
- 8.9.x core/modules/views/src/Plugin/views/argument_validator/NumericArgumentValidator.php \Drupal\views\Plugin\views\argument_validator\NumericArgumentValidator::getContextDefinition()
- 11.x core/modules/views/src/Plugin/views/argument_validator/NumericArgumentValidator.php \Drupal\views\Plugin\views\argument_validator\NumericArgumentValidator::getContextDefinition()
Overrides ArgumentValidatorPluginBase::getContextDefinition
File
-
core/
modules/ views/ src/ Plugin/ views/ argument_validator/ NumericArgumentValidator.php, line 27
Class
- NumericArgumentValidator
- Validate whether an argument is numeric or not.
Namespace
Drupal\views\Plugin\views\argument_validatorCode
public function getContextDefinition() {
return new ContextDefinition('integer', $this->argument
->adminLabel(), FALSE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.