Embera\Formatter::setTemplate PHP 메소드

setTemplate() 공개 메소드

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
리턴 string
    public function setTemplate($template, $body = null)
    {
        $this->template = $template;
        if (!is_null($body)) {
            return $this->transform($body);
        }
        return '';
    }