You are here

interface ActivityAnswerPluginInterface in Opigno module 3.x

Same name and namespace in other branches
  1. 8 src/ActivityAnswerPluginInterface.php \Drupal\opigno_module\ActivityAnswerPluginInterface

Interface ActivityAnswerPluginInterface.

Hierarchy

Expanded class hierarchy of ActivityAnswerPluginInterface

All classes that implement ActivityAnswerPluginInterface

File

src/ActivityAnswerPluginInterface.php, line 12

Namespace

Drupal\opigno_module
View source
interface ActivityAnswerPluginInterface extends PluginInspectionInterface {

  /**
   * Get plugin id.
   */
  public function getId();

  /**
   * Get plugin activity type.
   */
  public function getActivityType();

  /**
   * Indicates if answer should me evaluated on save or not.
   */
  public function evaluatedOnSave(OpignoActivityInterface $activity);

  /**
   * Score logic for specified activity.
   */
  public function getScore(OpignoAnswerInterface $answer);

  /**
   * Modify answering form.
   */
  public function answeringForm(array &$form);

}

Members

Namesort descending Modifiers Type Description Overrides
ActivityAnswerPluginInterface::answeringForm public function Modify answering form. 1
ActivityAnswerPluginInterface::evaluatedOnSave public function Indicates if answer should me evaluated on save or not. 1
ActivityAnswerPluginInterface::getActivityType public function Get plugin activity type. 1
ActivityAnswerPluginInterface::getId public function Get plugin id. 1
ActivityAnswerPluginInterface::getScore public function Score logic for specified activity. 1
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2