interface ShareEverywhereServiceInterface in Share Everywhere 8
Same name and namespace in other branches
- 2.x src/ShareEverywhereServiceInterface.php \Drupal\share_everywhere\ShareEverywhereServiceInterface
Interface for ShareEverywhereService.
Hierarchy
- interface \Drupal\share_everywhere\ShareEverywhereServiceInterface
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_everywhereView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ShareEverywhereServiceInterface:: |
public | function | Builds a renderable array of Social buttons. | 1 |
ShareEverywhereServiceInterface:: |
public | function | Determines if module is restricted to show or not on certain pages. | 1 |