public function getCurrentTag()
    {
        /**
         * @var Blog $dataRecord
         */
        $dataRecord = $this->dataRecord;
        $tag = $this->request->param('Tag');
        if ($tag) {
            $filter = URLSegmentFilter::create();
            // url encode unless it's multibyte (already pre-encoded in the database)
            // see https://github.com/silverstripe/silverstripe-cms/pull/2384
            if (!$filter->getAllowMultibyte()) {
                $tag = rawurlencode($tag);
            }

            return $dataRecord->Tags()
                ->filter('URLSegment', $tag)
                ->first();
        }
        return null;
    }
public function getCurrentTag()
    {
        /**
         * @var Blog $dataRecord
         */
        $dataRecord = $this->dataRecord;
        $tag = $this->request->param('Tag');
        if ($tag) {
            $filter = URLSegmentFilter::create();
            // url encode unless it's multibyte (already pre-encoded in the database)
            // see https://github.com/silverstripe/silverstripe-cms/pull/2384
            if (!$filter->getAllowMultibyte()) {
                $tag = rawurlencode($tag);
            }

            return $dataRecord->Tags()
                ->filter('URLSegment', $tag)
                ->first();
        }
        return null;
    }
public function getCurrentTag ( ) { /**
         * @var Blog $dataRecord
         */ $ dataRecord = $ this -> dataRecord ; $ tag = $ this -> request -> param ( 'Tag' ) ; if ( $ tag ) { $ filter = URLSegmentFilter :: create ( ) ; // url encode unless it's multibyte (already pre-encoded in the database) // see https://github.com/silverstripe/silverstripe-cms/pull/2384 if ( ! $ filter -> getAllowMultibyte ( ) ) { $ tag = rawurlencode ( $ tag ) ; } return $ dataRecord -> Tags ( ) -> filter ( 'URLSegment' , $ tag ) -> first ( ) ; } return null ; }
Tag Getter for use in templates.

@return null|BlogTag
Tag Getter for use in templates .