public function ViewsDelimitedList::__construct in Views Delimited List 2.x
Constructs ViewDelimitedList object.
Parameters
\Drupal\views\ViewExecutable $view: Views object.
array $rows: The rows.
File
- src/
ViewsDelimitedList.php, line 48
Class
- ViewsDelimitedList
- Logic for separator, delimiters, and conjunctives.
Namespace
Drupal\views_delimited_listCode
public function __construct(ViewExecutable $view, array $rows) {
$this->view = $view;
$this->rows = $rows;
$this->count = count($rows);
$this->separator = $this
->getSeparator();
}