Frontend\Core\Engine\Header::getMetaValue PHP Метод

getMetaValue() публичный Метод

Get all attributes for meta tag specified by the attribute and the value for that attribute.
public getMetaValue ( string $attribute, string $attributeValue ) : array
$attribute string The attribute to match on.
$attributeValue string The value for the unique attribute.
Результат array
    public function getMetaValue($attribute, $attributeValue)
    {
        foreach ($this->meta as $item) {
            // if the key and the value match we return the item
            if (isset($item[$attribute]) && $item[$attribute] == $attributeValue) {
                return $item;
            }
        }
    }