getPropertiesByTagName() 공개 메소드

returns properties with given tag name sorted by priority.
public getPropertiesByTagName ( string $tagName ) : Sulu\Component\Content\Compat\PropertyInterface[]
$tagName string
리턴 Sulu\Component\Content\Compat\PropertyInterface[]
예제 #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;
 }