Calotype\SEO\Generators\SitemapGenerator::replaceAttribute PHP Method

replaceAttribute() protected method

Replace an attribute with it's replacement if available.
protected replaceAttribute ( string $attribute ) : string
$attribute string
return string
    protected function replaceAttribute($attribute)
    {
        if (array_key_exists($attribute, $this->replacements)) {
            return $this->replacements[$attribute];
        }
        return $attribute;
    }