You are here

ForwardLinkBuilderInterface.php in Forward 8

Namespace

Drupal\forward

File

src/ForwardLinkBuilderInterface.php
View source
<?php

namespace Drupal\forward;

use Drupal\Core\Entity\EntityInterface;

/**
 * Defines an interface for building a Forward link on an entity.
 */
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);

}

Interfaces

Namesort descending Description
ForwardLinkBuilderInterface Defines an interface for building a Forward link on an entity.