src/Sulu/Component/Content/Metadata/PropertiesMetadata.php
public function getPropertiesByTagName($tagName)
    {
        $properties = [];

        foreach ($this->properties as $property) {
            foreach ($property->tags as $tag) {
                if ($tag['name'] == $tagName) {
                    $properties[$property->name] = $property;
                }
            }
        }

        return $properties;
    }
public function getPropertiesByTagName($tagName)
    {
        $properties = [];

        foreach ($this->properties as $property) {
            foreach ($property->tags as $tag) {
                if ($tag['name'] == $tagName) {
                    $properties[$property->name] = $property;
                }
            }
        }

        return $properties;
    }
public function getPropertiesByTagName ( $ tagName ) { $ properties = [ ] ; foreach ( $ this -> properties as $ property ) { foreach ( $ property -> tags as $ tag ) { if ( $ tag [ 'name' ] == $ tagName ) { $ properties [ $ property -> name ] = $ property ; } } } return $ properties ; }
Return all properties with the given tag name.

@param string $tagName

@return PropertyMetadata[]
Return all properties with the given tag name .