plugin/exo/Serializer/Item/ItemSerializer.php
private function serializeResources(Item $question, array $options = [])
    {
        return array_map(function (ItemResource $resource) use ($options) {
            return $this->resourceContentSerializer->serialize($resource->getResourceNode(), $options);
        }, $question->getResources()->toArray());
    }
private function serializeResources(Item $question, array $options = [])
    {
        return array_map(function (ItemResource $resource) use ($options) {
            return $this->resourceContentSerializer->serialize($resource->getResourceNode(), $options);
        }, $question->getResources()->toArray());
    }
private function serializeResources ( Item $ question , array $ options = [ ] ) { return array_map ( function ( ItemResource $ resource ) use ( $ options ) { return $ this -> resourceContentSerializer -> serialize ( $ resource -> getResourceNode ( ) , $ options ) ; } , $ question -> getResources ( ) -> toArray ( ) ) ; }
Serializes Item resources.
Forwards the resource serialization to ResourceContentSerializer.

@param Item  $question
@param array $options

@return array
Serializes Item resources . Forwards the resource serialization to ResourceContentSerializer .