function StringArgument::getContextDefinition
Same name in other branches
- 9 core/modules/views/src/Plugin/views/argument/StringArgument.php \Drupal\views\Plugin\views\argument\StringArgument::getContextDefinition()
- 8.9.x core/modules/views/src/Plugin/views/argument/StringArgument.php \Drupal\views\Plugin\views\argument\StringArgument::getContextDefinition()
- 10 core/modules/views/src/Plugin/views/argument/StringArgument.php \Drupal\views\Plugin\views\argument\StringArgument::getContextDefinition()
Overrides ArgumentPluginBase::getContextDefinition
File
-
core/
modules/ views/ src/ Plugin/ views/ argument/ StringArgument.php, line 334
Class
- StringArgument
- Argument handler for string.
Namespace
Drupal\views\Plugin\views\argumentCode
public function getContextDefinition() {
if ($context_definition = parent::getContextDefinition()) {
return $context_definition;
}
// If the parent does not provide a context definition through the
// validation plugin, fall back to the string type.
return new ContextDefinition('string', $this->adminLabel(), FALSE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.