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

getChild() public method

returns property with given name.
public getChild ( string $name ) : Sulu\Component\Content\Compat\PropertyInterface
$name string of property
return Sulu\Component\Content\Compat\PropertyInterface
    public function getChild($name)
    {
        foreach ($this->childProperties as $child) {
            if ($child->getName() === $name) {
                return $child;
            }
        }
        throw new NoSuchPropertyException();
    }