getPropertiesByTagName() public method

returns properties with given tag name sorted by priority.
public getPropertiesByTagName ( string $tagName ) : Sulu\Component\Content\Compat\PropertyInterface[]
$tagName string
return Sulu\Component\Content\Compat\PropertyInterface[]
Exemplo n.º 1
0
 /**
  * @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;
 }