You are here

interface BibciteLinkPluginInterface in Bibliography & Citation 2.0.x

Same name and namespace in other branches
  1. 8 modules/bibcite_entity/src/Plugin/BibciteLinkPluginInterface.php \Drupal\bibcite_entity\Plugin\BibciteLinkPluginInterface

Defines an interface for Link plugins.

Hierarchy

Expanded class hierarchy of BibciteLinkPluginInterface

All classes that implement BibciteLinkPluginInterface

File

modules/bibcite_entity/src/Plugin/BibciteLinkPluginInterface.php, line 11

Namespace

Drupal\bibcite_entity\Plugin
View source
interface BibciteLinkPluginInterface extends PluginInspectionInterface {

  /**
   * Get plugin label.
   *
   * @return string
   *   Plugin label.
   */
  public function getLabel();

  /**
   * Build link using data from Reference entity.
   *
   * @param \Drupal\bibcite_entity\Entity\ReferenceInterface $reference
   *   Reference entity object.
   *
   * @return array
   *   Constructed URL render array or NULL if URL can not be constructed.
   */
  public function build(ReferenceInterface $reference);

}

Members

Namesort descending Modifiers Type Description Overrides
BibciteLinkPluginInterface::build public function Build link using data from Reference entity. 1
BibciteLinkPluginInterface::getLabel public function Get plugin label. 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