You are here

public function SharethisManager::widgetContents in ShareThis 8.2

Custom html markup for widget.

Parameters

array $array: Settings array.

Return value

array Return array renderable by renderSpans().

Overrides SharethisManagerInterface::widgetContents

File

src/SharethisManager.php, line 137

Class

SharethisManager
Defines an SharethisManager service.

Namespace

Drupal\sharethis

Code

public function widgetContents(array $settings) {
  $mpath = $settings['m_path'];
  $mtitle = $settings['m_title'];
  $data_options = $this
    ->getOptions();
  return $this
    ->renderSpans($data_options, $mtitle, $mpath);
}