/** * @param $tagName * @param array $attributes * @param string $content * @param bool $forceClosingTag * @return string */ protected function createTag($tagName, array $attributes = NULL, $content = '', $forceClosingTag = FALSE) { $tag = new TagBuilder($tagName, $content); if ($attributes) { $tag->addAttributes($attributes); } $tag->forceClosingTag($forceClosingTag); return $tag->render(); }