public function String::init in Views (for Drupal 7) 8.3
Overrides Drupal\views\Plugin\views\HandlerBase:init().
Overrides ArgumentPluginBase::init
1 call to String::init()
- ListString::init in lib/
Views/ field/ Plugin/ views/ argument/ ListString.php - Overrides Drupal\views\Plugin\views\HandlerBase:init().
1 method overrides String::init()
- ListString::init in lib/
Views/ field/ Plugin/ views/ argument/ ListString.php - Overrides Drupal\views\Plugin\views\HandlerBase:init().
File
- lib/
Drupal/ views/ Plugin/ views/ argument/ String.php, line 26 - Definition of Drupal\views\Plugin\views\argument\String.
Class
- String
- Basic argument handler to implement string arguments that may have length limits.
Namespace
Drupal\views\Plugin\views\argumentCode
public function init(ViewExecutable $view, &$options) {
parent::init($view, $options);
if (!empty($this->definition['many to one'])) {
$this->helper = new ManyToOneHelper($this);
// Ensure defaults for these, during summaries and stuff:
$this->operator = 'or';
$this->value = array();
}
}