None.php in Zircon Profile 8
File
core/modules/views/src/Plugin/views/argument_validator/None.php
View source
<?php
namespace Drupal\views\Plugin\views\argument_validator;
class None extends ArgumentValidatorPluginBase {
public function validateArgument($argument) {
if (!empty($this->argument->options['must_not_be'])) {
return !isset($argument);
}
if (!isset($argument) || $argument === '') {
return FALSE;
}
if (!empty($this->argument->definition['numeric']) && !isset($this->argument->options['break_phrase']) && !is_numeric($arg)) {
return FALSE;
}
return TRUE;
}
}
Classes
Name |
Description |
None |
Do not validate the argument. |