fix typo in method name

This commit is contained in:
Jarek Jakubowski
2019-01-22 10:22:45 +01:00
parent a83a7a2164
commit b8a4fab3ce
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -276,7 +276,7 @@ class Content implements ObjectManagerAware
{
return $this->fields
->map(function (Field $field) {
return $field->getFlatenValue();
return $field->getFlattenedValue();
})
->toArray();
}
+1 -3
View File
@@ -192,11 +192,9 @@ class Field implements Translatable
/**
* like getValue() but returns single value for single value fields
*
* @Groups({"get_content"})
*
* @return array|mixed|null
*/
public function getFlatenValue()
public function getFlattenedValue()
{
$value = $this->getValue();
if (is_iterable($value) && count($value) < 2) {