Embera\Formatter::setTemplate PHP Method

setTemplate() public method

Sets a template with placeholders, that should be replaced by the data from an oembed response.
public setTemplate ( string $template, string | array $body = null ) : string
$template string
$body string | array An array or string with Urls
return string
    public function setTemplate($template, $body = null)
    {
        $this->template = $template;
        if (!is_null($body)) {
            return $this->transform($body);
        }
        return '';
    }