Get the formula for this argument.
$this->ensureMyTable() MUST have been called prior to this.
File
- drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/String.php, line 175
- 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\argument
Code
function get_formula() {
return "SUBSTRING({$this->tableAlias}.{$this->realField}, 1, " . intval($this->options['limit']) . ")";
}