Nouveller.php in Social Media Links Block and Field 8.2
File
src/Plugin/SocialMediaLinks/Iconset/Nouveller.php
View source
<?php
namespace Drupal\social_media_links\Plugin\SocialMediaLinks\Iconset;
use Drupal\social_media_links\IconsetBase;
use Drupal\social_media_links\IconsetInterface;
class Nouveller extends IconsetBase implements IconsetInterface {
public function getStyle() {
return [
'16' => '16x16',
'32' => '32x32',
'buttons' => '122x42',
];
}
public function getIconPath($icon_name, $style) {
switch ($icon_name) {
case 'googleplus':
$icon_name = 'google';
break;
}
return $this->path . '/' . $style . '/' . $icon_name . '.png';
}
}