You are here

public function VoteUpDownWidgetBase::getWidgetId in Vote Up/Down 8

Returns the label of the specific plugin instance

Return value

mixed

Overrides VoteUpDownWidgetInterface::getWidgetId

2 calls to VoteUpDownWidgetBase::getWidgetId()
VoteUpDownWidgetBase::build in src/Plugin/VoteUpDownWidgetBase.php
@fixme Do not use camelcase on variables, and fix coding standards.
VoteUpDownWidgetBase::getWidgetTemplateVars in src/Plugin/VoteUpDownWidgetBase.php
Returns the path to the widget template to be used.

File

src/Plugin/VoteUpDownWidgetBase.php, line 21

Class

VoteUpDownWidgetBase
Defines a plugin base implementation that corresponding plugins will extend.

Namespace

Drupal\vud\Plugin

Code

public function getWidgetId() {
  return $this
    ->getPluginDefinition()['id'];
}