protected function ViewsDelimitedList::getSeparator in Views Delimited List 2.x
Gets the separator value.
Return value
string The separator value.
1 call to ViewsDelimitedList::getSeparator()
- ViewsDelimitedList::__construct in src/
ViewsDelimitedList.php - Constructs ViewDelimitedList object.
File
- src/
ViewsDelimitedList.php, line 61
Class
- ViewsDelimitedList
- Logic for separator, delimiters, and conjunctives.
Namespace
Drupal\views_delimited_listCode
protected function getSeparator() {
$options = $this->view
->getStyle()->options;
if ($this->count === 2 && $this->count != $options['long_count']) {
$separator = $options['separator_two'];
}
else {
$separator = $options['separator_long'];
}
return $separator;
}