You are here

interface LinkStatusHandlerInterface in Link checker 8

Defines an interface for Link status handler plugins.

Hierarchy

Expanded class hierarchy of LinkStatusHandlerInterface

All classes that implement LinkStatusHandlerInterface

File

src/Plugin/LinkStatusHandlerInterface.php, line 12

Namespace

Drupal\linkchecker\Plugin
View source
interface LinkStatusHandlerInterface extends PluginInspectionInterface {

  /**
   * Handles a status code of link.
   *
   * @param \Drupal\linkchecker\LinkCheckerLinkInterface $link
   *   The link.
   * @param \Psr\Http\Message\ResponseInterface $response
   *   The response of link checking.
   */
  public function handle(LinkCheckerLinkInterface $link, ResponseInterface $response);

  /**
   * Creates a queue for handling.
   *
   * @param \Drupal\linkchecker\LinkCheckerLinkInterface $link
   *   The link.
   * @param \Psr\Http\Message\ResponseInterface $response
   *   The response of link checking.
   */
  public function queueItems(LinkCheckerLinkInterface $link, ResponseInterface $response);

}

Members

Namesort descending Modifiers Type Description Overrides
LinkStatusHandlerInterface::handle public function Handles a status code of link. 1
LinkStatusHandlerInterface::queueItems public function Creates a queue for handling. 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