ContentSitemapPriority

Implements \LocalizedContentAttributeInterface

Class ContentSitemapPriority

This class represents the localized site map priority

category

System

package

Content

Methods

ContentSitemapPriority constructor

__construct(float $priority, \LanguageCode $languageCode) 

Arguments

$priority

float

Content site map priority

$languageCode

\LanguageCode

Language code

Return the content site map priority

content() : string

Response

string

Format the provided site map priority float to its according string representation This method will NOT round the value of a provided float, that contains many decimals

formatSitemapPriority(float $value) : string
example

= formatSitemapPriority(0.987654321) // $number === "0.9"

Arguments

$value

float

Float site map priority value

Response

string

Return the language code

languageCode() : string

Response

string

Constants

Minimum value

MIN

Maximum value

MAX

Properties

Content site map priority

priority : string
var

Type(s)

string

Language code

languageCode : string
var

Type(s)

string