You are here

VotingApiWidgetInterface.php in Votingapi Widgets 8

File

src/Plugin/VotingApiWidgetInterface.php
View source
<?php

namespace Drupal\votingapi_widgets\Plugin;

use Drupal\Component\Plugin\PluginInspectionInterface;

/**
 * Defines an interface for Voting api widget plugins.
 */
interface VotingApiWidgetInterface extends PluginInspectionInterface {

  /**
   * Build form.
   */
  public function buildForm($entity_type, $entity_bundle, $entity_id, $vote_type, $field_name, $settings);

  /**
   * Get available styles.
   */
  public function getStyles();

}

Interfaces

Namesort descending Description
VotingApiWidgetInterface Defines an interface for Voting api widget plugins.