You are here

interface ForwardLinkBuilderInterface in Forward 8

Same name and namespace in other branches
  1. 8.3 src/ForwardLinkBuilderInterface.php \Drupal\forward\ForwardLinkBuilderInterface
  2. 8.2 src/ForwardLinkBuilderInterface.php \Drupal\forward\ForwardLinkBuilderInterface

Defines an interface for building a Forward link on an entity.

Hierarchy

Expanded class hierarchy of ForwardLinkBuilderInterface

All classes that implement ForwardLinkBuilderInterface

3 files declare their use of ForwardLinkBuilderInterface
ForwardLink.php in src/Plugin/DsField/ForwardLink.php
ForwardLink.php in src/Plugin/views/field/ForwardLink.php
ForwardLinkBlock.php in src/Plugin/Block/ForwardLinkBlock.php
Contains \Drupal\forward\Plugin\Block\ForwardLinkBlock.

File

src/ForwardLinkBuilderInterface.php, line 10

Namespace

Drupal\forward
View source
interface ForwardLinkBuilderInterface {

  /**
   * Builds a Forward link for a given entity.
   *
   * @param \Drupal\Core\Entity\EntityInterface $entity
   *   Entity for which the link is being built.
   * @param array $settings
   *   Array of settings.
   *
   * @return array
   *   A render array for the link.
   */
  public function buildForwardEntityLink(EntityInterface $entity, array $settings);

}

Members

Namesort descending Modifiers Type Description Overrides
ForwardLinkBuilderInterface::buildForwardEntityLink public function Builds a Forward link for a given entity. 1