None.php
Same filename in this branch
Same filename in other branches
- 9 core/modules/views/src/Plugin/views/argument_validator/None.php
- 9 core/modules/views/src/Plugin/views/cache/None.php
- 9 core/modules/views/src/Plugin/views/access/None.php
- 9 core/modules/views/src/Plugin/views/pager/None.php
- 10 core/modules/views/src/Plugin/views/argument_validator/None.php
- 10 core/modules/views/src/Plugin/views/cache/None.php
- 10 core/modules/views/src/Plugin/views/access/None.php
- 10 core/modules/views/src/Plugin/views/pager/None.php
- 11.x core/modules/views/src/Plugin/views/argument_validator/None.php
- 11.x core/modules/views/src/Plugin/views/cache/None.php
- 11.x core/modules/views/src/Plugin/views/access/None.php
- 11.x core/modules/views/src/Plugin/views/pager/None.php
Namespace
Drupal\views\Plugin\views\argument_validatorFile
-
core/
modules/ views/ src/ Plugin/ views/ argument_validator/ None.php
View source
<?php
namespace Drupal\views\Plugin\views\argument_validator;
/**
* Do not validate the argument.
*
* @ingroup views_argument_validate_plugins
*
* @ViewsArgumentValidator(
* id = "none",
* title = @Translation(" - Basic validation - ")
* )
*/
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
Title | Deprecated | Summary |
---|---|---|
None | Do not validate the argument. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.