Programming Language PHP
Namespace Oro\Component\EntitySerializer
Class FieldConfig
Method/Function getPropertyPath
Total Examples 2
2 code examples of PHP Oro\Component\EntitySerializer\FieldConfig::getPropertyPath extracted from open source projects
/**
* Gets the path to entity property for the given field.
*/
private function getPropertyPath(string $fieldName, FieldConfig $fieldConfig = null): string
{
if (null === $fieldConfig) {
return $fieldName;
}
return $fieldConfig->getPropertyPath($fieldName);
}
public function getPropertyPath(string $fieldName, FieldConfig $fieldConfig = null): string
{
if (null === $fieldConfig) {
return $fieldName;
}
return $fieldConfig->getPropertyPath($fieldName);
}