BibciteLinkPluginInterface.php in Bibliography & Citation 8
Same filename and directory in other branches
Namespace
Drupal\bibcite_entity\PluginFile
modules/bibcite_entity/src/Plugin/BibciteLinkPluginInterface.phpView source
<?php
namespace Drupal\bibcite_entity\Plugin;
use Drupal\bibcite_entity\Entity\ReferenceInterface;
use Drupal\Component\Plugin\PluginInspectionInterface;
/**
* Defines an interface for Link plugins.
*/
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);
}
Interfaces
Name | Description |
---|---|
BibciteLinkPluginInterface | Defines an interface for Link plugins. |