Timeline/TimelineBuilder.php
public function getTimelineHTML($context, array $args, $page = 0, $number = 20)
    {
        $query = $this->buildUnionQuery($context, $args, $page, $number);
        $fetched = $this->runQuery($query);
        $entitiesByKey = $this->getEntities($fetched, $context);
        
        return $this->render($fetched, $entitiesByKey, $context, $args);
    }
public function getTimelineHTML($context, array $args, $page = 0, $number = 20)
    {
        $query = $this->buildUnionQuery($context, $args, $page, $number);
        $fetched = $this->runQuery($query);
        $entitiesByKey = $this->getEntities($fetched, $context);
        
        return $this->render($fetched, $entitiesByKey, $context, $args);
    }
public function getTimelineHTML ( $ context , array $ args , $ page = 0 , $ number = 20 ) { $ query = $ this -> buildUnionQuery ( $ context , $ args , $ page , $ number ) ; $ fetched = $ this -> runQuery ( $ query ) ; $ entitiesByKey = $ this -> getEntities ( $ fetched , $ context ) ; return $ this -> render ( $ fetched , $ entitiesByKey , $ context , $ args ) ; }
return an HTML string with timeline

This function must be called from controller

@example https://redmine.champs-libres.coop/projects/chillperson/repository/revisions/bd2e1b1808f73e39532e9538413025df5487cad0/entry/Controller/TimelinePersonController.php#L47 the implementation in person bundle

@param string $context
@param array $args arguments defined by the bundle which create the context
@param int $page first page = 0
@param int $number number of items by page
@return string an HTML representation, must be included using `|raw` filter
return an HTML string with timeline