Sulu\Component\Content\Metadata\StructureMetadata::hasPropertyWithTagName PHP Method

hasPropertyWithTagName() public method

Return true if the structure contains a property with the given tag name.
public hasPropertyWithTagName ( string $tagName ) : boolean
$tagName string
return boolean
    public function hasPropertyWithTagName($tagName)
    {
        return (bool) count($this->getPropertiesByTagName($tagName));
    }

Usage Example

Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function hasTag($tag)
 {
     return $this->structure->hasPropertyWithTagName($tag);
 }