You are here

public function CalendarValidator::getContextDefinition in Calendar 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/argument_validator/CalendarValidator.php \Drupal\calendar\Plugin\views\argument_validator\CalendarValidator::getContextDefinition()

.

Overrides ArgumentValidatorPluginBase::getContextDefinition

File

src/Plugin/views/argument_validator/CalendarValidator.php, line 149

Class

CalendarValidator
Defines a argument validator plugin for Date arguments used in Calendar.

Namespace

Drupal\calendar\Plugin\views\argument_validator

Code

public function getContextDefinition() {
  return new ContextDefinition('string', $this->argument
    ->adminLabel(), FALSE);
}