public fromProperty ( |
||
$property |
public function fromProperty(PropertyMetadata $property, $locale = null)
{
if (true === $property->isLocalized()) {
return $this->localizedContentName($property->getName(), $locale);
}
return $this->contentname($property->getName());
}