You are here

ShareEverywhereServiceInterface.php in Share Everywhere 2.x

Same filename and directory in other branches
  1. 8 src/ShareEverywhereServiceInterface.php

File

src/ShareEverywhereServiceInterface.php
View source
<?php

namespace Drupal\share_everywhere;


/**
 * Interface for ShareEverywhereService.
 */
interface ShareEverywhereServiceInterface {

  /**
   * Builds a renderable array of Social buttons.
   *
   * @param string $url
   *   Node url.
   * @param string $id
   *   Node entity type plus node id.
   *
   * @return array
   *   Renderable build array.
   */
  public function build($url, $id);

  /**
   * Determines if module is restricted to show or not on certain pages.
   *
   * @param string $view_mode
   *   Entity view mode.
   *
   * @return bool
   *   Returns TRUE or FALSE.
   */
  public function isRestricted($view_mode);

}

Interfaces

Namesort descending Description
ShareEverywhereServiceInterface Interface for ShareEverywhereService.