protected function addExtraReturnData(EntityInterface $taskLogEntity)
    {
        $data = [];

        if ($taskLogEntity->getReport()) {
            $plainReport = $this->getPlainReport($taskLogEntity->getReport());

            //the third report is report of import test
            $itemsReport = array_slice($plainReport, 2);
            foreach ($itemsReport as $itemReport) {
                if (isset($itemReport->getData()['uriResource'])) {
                    $data['itemIds'][] = $itemReport->getData()['uriResource'];
                }
            }
        }

        return $data;
    }
protected function addExtraReturnData(EntityInterface $taskLogEntity)
    {
        $data = [];

        if ($taskLogEntity->getReport()) {
            $plainReport = $this->getPlainReport($taskLogEntity->getReport());

            //the third report is report of import test
            $itemsReport = array_slice($plainReport, 2);
            foreach ($itemsReport as $itemReport) {
                if (isset($itemReport->getData()['uriResource'])) {
                    $data['itemIds'][] = $itemReport->getData()['uriResource'];
                }
            }
        }

        return $data;
    }
protected function addExtraReturnData ( EntityInterface $ taskLogEntity ) { $ data = [ ] ; if ( $ taskLogEntity -> getReport ( ) ) { $ plainReport = $ this -> getPlainReport ( $ taskLogEntity -> getReport ( ) ) ; //the third report is report of import test $ itemsReport = array_slice ( $ plainReport , 2 ) ; foreach ( $ itemsReport as $ itemReport ) { if ( isset ( $ itemReport -> getData ( ) [ 'uriResource' ] ) ) { $ data [ 'itemIds' ] [ ] = $ itemReport -> getData ( ) [ 'uriResource' ] ; } } } return $ data ; }
Add extra values to the JSON returned.

@param EntityInterface $taskLogEntity
@return array
Add extra values to the JSON returned .