Pressbooks\Modules\Export\Mpdf\Pdf::getFooter PHP Method

getFooter() public method

Return formatted footers.
public getFooter ( boolean $display = true, string $content = '' ) : string
$display boolean
$content string The post type being added to the page.
return string
    function getFooter($display = true, $content = '')
    {
        // bail early
        if (false == $display) {
            return '';
        }
        // override
        $footer = apply_filters('mpdf_get_footer', $content);
        // sanitize
        $footer = \Pressbooks\Sanitize\filter_title($footer);
        return $footer;
    }