You are here

public function RateWidgetInterface::getOption in Rate 8.2

Return a single voting button as option by key.

Parameters

string $key: The key to return.

mixed $default_value: The default value to use in case the key is missing. Defaults to NULL.

Return value

mixed The value of the option or the default value if none found.

1 method overrides RateWidgetInterface::getOption()
RateWidget::getOption in src/Entity/RateWidget.php
Return a single voting button as option by key.

File

src/RateWidgetInterface.php, line 55

Class

RateWidgetInterface
Provides an interface defining a Rate widget entity.

Namespace

Drupal\rate

Code

public function getOption($key, $default_value = NULL);