src/Data/DefaultEditInformation.php
public function getFlatModelErrors(ModelInterface $model)
    {
        $modelErrors = $this->getModelError($model);
        if (!$modelErrors) {
            return $modelErrors;
        }

        $errors = [[]];
        foreach ($this->getModelError($model) as $modelError) {
            $errors[] = $modelError;
        }

        return \array_merge(...$errors);
    }
public function getFlatModelErrors(ModelInterface $model)
    {
        $modelErrors = $this->getModelError($model);
        if (!$modelErrors) {
            return $modelErrors;
        }

        $errors = [[]];
        foreach ($this->getModelError($model) as $modelError) {
            $errors[] = $modelError;
        }

        return \array_merge(...$errors);
    }
public function getFlatModelErrors ( ModelInterface $ model ) { $ modelErrors = $ this -> getModelError ( $ model ) ; if ( ! $ modelErrors ) { return $ modelErrors ; } $ errors = [ [ ] ] ; foreach ( $ this -> getModelError ( $ model ) as $ modelError ) { $ errors [ ] = $ modelError ; } return \ array_merge ( ... $ errors ) ; }
Get flat model errors. This returns all errors without property names hierarchy.

@param ModelInterface $model The model.

@return array|null
Get flat model errors . This returns all errors without property names hierarchy .