Beispiel #1
0
 /**
  * @return mixed
  */
 public function getContent()
 {
     $content = new \HtmlObject\Element('div');
     $content->setChild(new \HtmlObject\Element('p', $this->content));
     if ($this->link) {
         $content->setChild(id(new \HtmlObject\Link($this->link, t('Learn More')))->target('blank'));
     }
     if ($this->guide) {
         $button = new \HtmlObject\Link($this->link, t('Launch Guide'));
         $button->addClass('btn btn-info btn-sm')->href('#')->setAttribute('data-launch-guide', $this->guide);
         $content->setChild($button);
     }
     return $content;
 }