deleteSeries() public method

Permanently remove a blog post series.
public deleteSeries ( integer $seriesId ) : boolean
$seriesId integer
return boolean
Ejemplo n.º 1
0
 /**
  * Delete a series.
  *
  * @param string $id
  */
 public function deleteSeries(string $id = '')
 {
     $id = (int) $id;
     $post = $this->post(new DeleteSeriesFilter());
     if (!empty($post)) {
         if ($this->blog->deleteSeries($id)) {
             \Airship\redirect($this->airship_cabin_prefix . '/blog/series');
         }
     }
     $series = $this->blog->getSeries($id);
     $this->lens('blog/series_delete', ['active_link' => 'bridge-link-blog-series', 'series' => $series]);
 }