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

postHistory() public method

View the history for a blog post.
public postHistory ( string $postID = '' )
$postID string
    public function postHistory(string $postID = '')
    {
        $blog = $this->blog->getBlogPostById((int) $postID);
        if (!$blog || !$this->can('read')) {
            \Airship\redirect($this->airship_cabin_prefix . '/blog/post');
        }
        $this->lens('blog/post_history', ['active_link' => 'bridge-link-blog-posts', 'blog' => $blog, 'history' => $this->blog->getBlogPostVersions((int) $postID)]);
    }