public function StringContainsArgument::getContextDefinition in Media Directories 8
Same name and namespace in other branches
- 2.x modules/media_directories_ui/src/Plugin/views/argument/StringContainsArgument.php \Drupal\media_directories_ui\Plugin\views\argument\StringContainsArgument::getContextDefinition()
Returns a context definition for this argument.
Return value
\Drupal\Core\Plugin\Context\ContextDefinitionInterface|null A context definition that represents the argument or NULL if that is not possible.
Overrides ArgumentPluginBase::getContextDefinition
File
- modules/
media_directories_ui/ src/ Plugin/ views/ argument/ StringContainsArgument.php, line 98
Class
- StringContainsArgument
- Media directory ui string contains argument plugin.
Namespace
Drupal\media_directories_ui\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 integer type.
return new ContextDefinition('string', $this
->adminLabel(), FALSE);
}