mirror of
https://github.com/jbcr/core.git
synced 2026-04-29 11:43:14 +02:00
fix typo in method name
This commit is contained in:
@@ -276,7 +276,7 @@ class Content implements ObjectManagerAware
|
||||
{
|
||||
return $this->fields
|
||||
->map(function (Field $field) {
|
||||
return $field->getFlatenValue();
|
||||
return $field->getFlattenedValue();
|
||||
})
|
||||
->toArray();
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user