You are here

interface ShareEverywhereServiceInterface in Share Everywhere 8

Same name and namespace in other branches
  1. 2.x src/ShareEverywhereServiceInterface.php \Drupal\share_everywhere\ShareEverywhereServiceInterface

Interface for ShareEverywhereService.

Hierarchy

Expanded class hierarchy of ShareEverywhereServiceInterface

All classes that implement ShareEverywhereServiceInterface

2 files declare their use of ShareEverywhereServiceInterface
ShareEverywhereBlock.php in src/Plugin/Block/ShareEverywhereBlock.php
ShareEverywhereField.php in src/Plugin/views/field/ShareEverywhereField.php

File

src/ShareEverywhereServiceInterface.php, line 8

Namespace

Drupal\share_everywhere
View source
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);

}

Members

Namesort descending Modifiers Type Description Overrides
ShareEverywhereServiceInterface::build public function Builds a renderable array of Social buttons. 1
ShareEverywhereServiceInterface::isRestricted public function Determines if module is restricted to show or not on certain pages. 1