Sulu\Component\Content\Compat\Block\BlockPropertyType::getProperty PHP Method

getProperty() public method

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