You are here

public function ViewsBadge::getBadgeValue in Link Badges 8

Return value

mixed

Overrides LinkBadgeBase::getBadgeValue

File

src/Plugin/LinkBadge/ViewsBadge.php, line 24

Class

ViewsBadge
Class ViewsBadge

Namespace

Drupal\link_badges\Plugin\LinkBadge

Code

public function getBadgeValue() {
  $result = views_embed_view($this->name, $this->display_id);
  return drupal_render($result);
}