public function getFilterDescription()
    {
        $items = [];

        $list = $this->PaginatedList();
        $currentPage = $list->CurrentPage();

        if ($currentPage > 1) {
            $items[] = _t(
                'SilverStripe\\Blog\\Model\\Blog.FILTERDESCRIPTION_PAGE',
                'Page {page}',
                null,
                [
                    'page' => $currentPage
                ]
            );
        }

        if ($author = $this->getCurrentProfile()) {
            $items[] = _t(
                'SilverStripe\\Blog\\Model\\Blog.FILTERDESCRIPTION_AUTHOR',
                'By {author}',
                null,
                [
                    'author' => $author->Title
                ]
            );
        }

        if ($tag = $this->getCurrentTag()) {
            $items[] = _t(
                'SilverStripe\\Blog\\Model\\Blog.FILTERDESCRIPTION_TAG',
                'Tagged with {tag}',
                null,
                [
                    'tag' => $tag->Title
                ]
            );
        }

        if ($category = $this->getCurrentCategory()) {
            $items[] = _t(
                'SilverStripe\\Blog\\Model\\Blog.FILTERDESCRIPTION_CATEGORY',
                'In category {category}',
                null,
                [
                    'category' => $category->Title
                ]
            );
        }

        if ($this->owner->getArchiveYear()) {
            if ($this->owner->getArchiveDay()) {
                $date = $this->owner->getArchiveDate()->Nice();
            } elseif ($this->owner->getArchiveMonth()) {
                $date = $this->owner->getArchiveDate()->format('MMMM, y');
            } else {
                $date = $this->owner->getArchiveDate()->format('y');
            }

            $items[] = _t(
                'SilverStripe\\Blog\\Model\\Blog.FILTERDESCRIPTION_DATE',
                'In {date}',
                null,
                [
                    'date' => $date,
                ]
            );
        }

        $result = '';

        if ($items) {
            $result = implode(', ', $items);
        }

        $this->extend('updateFilterDescription', $result);

        return $result;
    }
public function getFilterDescription()
    {
        $items = [];

        $list = $this->PaginatedList();
        $currentPage = $list->CurrentPage();

        if ($currentPage > 1) {
            $items[] = _t(
                'SilverStripe\\Blog\\Model\\Blog.FILTERDESCRIPTION_PAGE',
                'Page {page}',
                null,
                [
                    'page' => $currentPage
                ]
            );
        }

        if ($author = $this->getCurrentProfile()) {
            $items[] = _t(
                'SilverStripe\\Blog\\Model\\Blog.FILTERDESCRIPTION_AUTHOR',
                'By {author}',
                null,
                [
                    'author' => $author->Title
                ]
            );
        }

        if ($tag = $this->getCurrentTag()) {
            $items[] = _t(
                'SilverStripe\\Blog\\Model\\Blog.FILTERDESCRIPTION_TAG',
                'Tagged with {tag}',
                null,
                [
                    'tag' => $tag->Title
                ]
            );
        }

        if ($category = $this->getCurrentCategory()) {
            $items[] = _t(
                'SilverStripe\\Blog\\Model\\Blog.FILTERDESCRIPTION_CATEGORY',
                'In category {category}',
                null,
                [
                    'category' => $category->Title
                ]
            );
        }

        if ($this->owner->getArchiveYear()) {
            if ($this->owner->getArchiveDay()) {
                $date = $this->owner->getArchiveDate()->Nice();
            } elseif ($this->owner->getArchiveMonth()) {
                $date = $this->owner->getArchiveDate()->format('MMMM, y');
            } else {
                $date = $this->owner->getArchiveDate()->format('y');
            }

            $items[] = _t(
                'SilverStripe\\Blog\\Model\\Blog.FILTERDESCRIPTION_DATE',
                'In {date}',
                null,
                [
                    'date' => $date,
                ]
            );
        }

        $result = '';

        if ($items) {
            $result = implode(', ', $items);
        }

        $this->extend('updateFilterDescription', $result);

        return $result;
    }
public function getFilterDescription ( ) { $ items = [ ] ; $ list = $ this -> PaginatedList ( ) ; $ currentPage = $ list -> CurrentPage ( ) ; if ( $ currentPage > 1 ) { $ items [ ] = _t ( 'SilverStripe\\Blog\\Model\\Blog.FILTERDESCRIPTION_PAGE' , 'Page {page}' , null , [ 'page' => $ currentPage ] ) ; } if ( $ author = $ this -> getCurrentProfile ( ) ) { $ items [ ] = _t ( 'SilverStripe\\Blog\\Model\\Blog.FILTERDESCRIPTION_AUTHOR' , 'By {author}' , null , [ 'author' => $ author -> Title ] ) ; } if ( $ tag = $ this -> getCurrentTag ( ) ) { $ items [ ] = _t ( 'SilverStripe\\Blog\\Model\\Blog.FILTERDESCRIPTION_TAG' , 'Tagged with {tag}' , null , [ 'tag' => $ tag -> Title ] ) ; } if ( $ category = $ this -> getCurrentCategory ( ) ) { $ items [ ] = _t ( 'SilverStripe\\Blog\\Model\\Blog.FILTERDESCRIPTION_CATEGORY' , 'In category {category}' , null , [ 'category' => $ category -> Title ] ) ; } if ( $ this -> owner -> getArchiveYear ( ) ) { if ( $ this -> owner -> getArchiveDay ( ) ) { $ date = $ this -> owner -> getArchiveDate ( ) -> Nice ( ) ; } elseif ( $ this -> owner -> getArchiveMonth ( ) ) { $ date = $ this -> owner -> getArchiveDate ( ) -> format ( 'MMMM, y' ) ; } else { $ date = $ this -> owner -> getArchiveDate ( ) -> format ( 'y' ) ; } $ items [ ] = _t ( 'SilverStripe\\Blog\\Model\\Blog.FILTERDESCRIPTION_DATE' , 'In {date}' , null , [ 'date' => $ date , ] ) ; } $ result = '' ; if ( $ items ) { $ result = implode ( ', ' , $ items ) ; } $ this -> extend ( 'updateFilterDescription' , $ result ) ; return $ result ; }
Returns a description of the current filter.

@return string
Returns a description of the current filter .