Timeline/TimelineBuilder.php
private function getTemplateData($type, $entity, $context, array $args)
    {
        foreach($this->getProvidersByContext($context) as $provider) {
            if ($provider->supportsType($type)) {
                return $provider->getEntityTemplate($entity, $context, $args);
            }
        }
    }
private function getTemplateData($type, $entity, $context, array $args)
    {
        foreach($this->getProvidersByContext($context) as $provider) {
            if ($provider->supportsType($type)) {
                return $provider->getEntityTemplate($entity, $context, $args);
            }
        }
    }
private function getTemplateData ( $ type , $ entity , $ context , array $ args ) { foreach ( $ this -> getProvidersByContext ( $ context ) as $ provider ) { if ( $ provider -> supportsType ( $ type ) ) { return $ provider -> getEntityTemplate ( $ entity , $ context , $ args ) ; } } }
get the template data from the provider for the given entity, by type.

@param string $type
@param mixed $entity
@param string $context
@param mixed[] $args
@return array the template data fetched from the provider
get the template data from the provider for the given entity by type .