Airship\Cabin\Bridge\Landing\Blog::listComments PHP Method

listComments() public method

public listComments ( string $page = null )
$page string
    public function listComments($page = null)
    {
        if (!$this->can('publish')) {
            \Airship\redirect($this->airship_cabin_prefix . '/blog');
        }
        list($offset, $limit) = $this->getOffsetAndLimit($page);
        $this->lens('blog/comments', ['active_link' => 'bridge-link-blog-comments', 'comments' => $this->blog->listComments($offset, $limit), 'pagination' => ['base' => $this->airship_cabin_prefix . '/blog/post', 'suffix' => '/', 'count' => $this->blog->numComments(), 'page' => (int) \ceil($offset / ($limit ?? 1)) + 1, 'per_page' => $limit]]);
    }