returns properties with given tag name sorted by priority.
public getPropertiesByTagName ( string $tagName ) : Sulu\Component\Content\Compat\PropertyInterface[] | ||
$tagName | string | |
Résultat | Sulu\Component\Content\Compat\PropertyInterface[] |
/** * @param StructureInterface $structure * @param array $parts * @param string $separator default '-' * * @return string */ private function implodeRlpParts(StructureInterface $structure, array $parts, $separator = '-') { $title = ''; // concat rlp parts in sort of priority foreach ($structure->getPropertiesByTagName('sulu.rlp.part') as $property) { $title = $parts[$property->getName()] . $separator . $title; } $title = substr($title, 0, -1); return $title; }