Sulu\Component\Content\Compat\Block\BlockPropertyType::getProperty PHP 메소드

getProperty() 공개 메소드

returns child property with given name.
public getProperty ( string $name ) : null | Sulu\Component\Content\Compat\PropertyInterface
$name string
리턴 null | Sulu\Component\Content\Compat\PropertyInterface
    public function getProperty($name)
    {
        foreach ($this->getChildProperties() as $property) {
            if ($property->getName() === $name) {
                return $property;
            }
        }
        return;
    }