protected function getTaskStatus(EntityInterface $taskLogEntity)
    {
        if ($taskLogEntity->getStatus()->isCreated()) {
            return __('In Progress');
        } else if ($taskLogEntity->getStatus()->isCompleted()){
            return __('Success');
        }

        return $taskLogEntity->getStatus()->getLabel();
    }
protected function getTaskStatus(EntityInterface $taskLogEntity)
    {
        if ($taskLogEntity->getStatus()->isCreated()) {
            return __('In Progress');
        } else if ($taskLogEntity->getStatus()->isCompleted()){
            return __('Success');
        }

        return $taskLogEntity->getStatus()->getLabel();
    }
protected function getTaskStatus ( EntityInterface $ taskLogEntity ) { if ( $ taskLogEntity -> getStatus ( ) -> isCreated ( ) ) { return __ ( 'In Progress' ) ; } else if ( $ taskLogEntity -> getStatus ( ) -> isCompleted ( ) ) { return __ ( 'Success' ) ; } return $ taskLogEntity -> getStatus ( ) -> getLabel ( ) ; }
Return 'Success' instead of 'Completed', required by the specified API.

@param EntityInterface $taskLogEntity
@return string
Return Success instead of Completed required by the specified API .