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;
}