Domain/DomainUtil.php
public static function oneAction(ResourceListInterface $resources)
    {
        $resources->get(0)->getErrors()->addAll($resources->getErrors());

        return $resources->get(0);
    }
public static function oneAction(ResourceListInterface $resources)
    {
        $resources->get(0)->getErrors()->addAll($resources->getErrors());

        return $resources->get(0);
    }
public static function oneAction ( ResourceListInterface $ resources ) { $ resources -> get ( 0 ) -> getErrors ( ) -> addAll ( $ resources -> getErrors ( ) ) ; return $ resources -> get ( 0 ) ; }
Inject the list errors in the first resource, and return the this first resource.

@param ResourceListInterface $resources The resource list

@return ResourceInterface The first resource
Inject the list errors in the first resource and return the this first resource .