Frontend\Modules\Blog\Engine\Model::getIdForTags PHP Method

getIdForTags() public static method

Selects the proper part of the full URL to get the item's id from the database.
public static getIdForTags ( Url $url ) : integer
$url Frontend\Core\Engine\Url The current URL.
return integer
    public static function getIdForTags(FrontendURL $url)
    {
        // select the proper part of the full URL
        $itemURL = (string) $url->getParameter(1);
        // return the item
        return self::get($itemURL);
    }