class TestBadge in Link Badges 8
A badge that displays "Test"
Plugin annotation
@LinkBadge(
id = "link_badge_test",
label = "Test Badge"
)
Hierarchy
- class \Drupal\link_badges\LinkBadgeBase implements LinkBadgeInterface
- class \Drupal\link_badges\Plugin\LinkBadge\TestBadge
Expanded class hierarchy of TestBadge
File
- src/
Plugin/ LinkBadge/ TestBadge.php, line 15
Namespace
Drupal\link_badges\Plugin\LinkBadgeView source
class TestBadge extends LinkBadgeBase {
public function getBadgeValue() {
return 'Test';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LinkBadgeBase:: |
public | function | ||
TestBadge:: |
public | function |
Overrides LinkBadgeBase:: |