You are here

public static function RateWidgetBase::create in Rate 8.2

File

src/Plugin/RateWidgetBase.php, line 111

Class

RateWidgetBase
Base class for Rate widget plugins.

Namespace

Drupal\rate\Plugin

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('entity_type.manager'), $container
    ->get('plugin.manager.votingapi.resultfunction'), $container
    ->get('entity.form_builder'), $container
    ->get('current_user'), $container
    ->get('request_stack'), $container
    ->get('config.factory'), $container
    ->get('module_handler'), $container
    ->get('bot_detector'));
}