Bundle/BusinessPageBundle/Builder/BusinessPageBuilder.php
protected function getEntityAttributeValue($entity, $field)
    {
        $functionName = 'get'.ucfirst($field);

        $fieldValue = call_user_func([$entity, $functionName]);

        return $fieldValue;
    }
protected function getEntityAttributeValue($entity, $field)
    {
        $functionName = 'get'.ucfirst($field);

        $fieldValue = call_user_func([$entity, $functionName]);

        return $fieldValue;
    }
protected function getEntityAttributeValue ( $ entity , $ field ) { $ functionName = 'get' . ucfirst ( $ field ) ; $ fieldValue = call_user_func ( [ $ entity , $ functionName ] ) ; return $ fieldValue ; }
Get the content of an attribute of an entity given.

@param BusinessPage $entity
@param string       $field

@return mixed
Get the content of an attribute of an entity given .