Msieprawski\ResourceTable\Generators\Collection::_setView PHP Method

_setView() private method

Sets view name for further rendering
private _setView ( string $name, boolean $custom = false )
$name string
$custom boolean
    private function _setView($name, $custom = false)
    {
        if (!is_string($name)) {
            throw new CollectionException('View name must be a string.');
        }
        $this->_viewName = (!$custom ? 'resource-table::' : '') . $name;
        return $this;
    }