class Nouveller in Social Media Links Block and Field 8.2
Provides 'nouveller' iconset.
Plugin annotation
@Iconset(
id = "nouveller",
name = "Social Media Bookmark Icon +",
publisher = "Nouveller",
publisherUrl = "http://www.nouveller.com",
downloadUrl = "http://www.nouveller.com/general/free-social-media-bookmark-icon-pack-the-ever-growing-icon-set",
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
- class \Drupal\social_media_links\IconsetBase implements ContainerFactoryPluginInterface, IconsetInterface
- class \Drupal\social_media_links\Plugin\SocialMediaLinks\Iconset\Nouveller implements IconsetInterface
- class \Drupal\social_media_links\IconsetBase implements ContainerFactoryPluginInterface, IconsetInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
Expanded class hierarchy of Nouveller
File
- src/
Plugin/ SocialMediaLinks/ Iconset/ Nouveller.php, line 19
Namespace
Drupal\social_media_links\Plugin\SocialMediaLinks\IconsetView source
class Nouveller extends IconsetBase implements IconsetInterface {
/**
* {@inheritdoc}
*/
public function getStyle() {
return [
'16' => '16x16',
'32' => '32x32',
'buttons' => '122x42',
];
}
/**
* {@inheritdoc}
*/
public function getIconPath($icon_name, $style) {
switch ($icon_name) {
case 'googleplus':
$icon_name = 'google';
break;
}
return $this->path . '/' . $style . '/' . $icon_name . '.png';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DependencySerializationTrait:: |
protected | property | An array of entity type IDs keyed by the property name of their storages. | |
DependencySerializationTrait:: |
protected | property | An array of service IDs keyed by property name used for serialization. | |
DependencySerializationTrait:: |
public | function | 1 | |
DependencySerializationTrait:: |
public | function | 2 | |
IconsetBase:: |
protected | property | ||
IconsetBase:: |
protected | property | ||
IconsetBase:: |
public static | function |
Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface:: |
|
IconsetBase:: |
public static | function | Explode the styles. | |
IconsetBase:: |
public | function |
Return the url to download the iconset. Overrides IconsetInterface:: |
|
IconsetBase:: |
public | function | Get the iconset element. | 1 |
IconsetBase:: |
public | function | Get the library. | 1 |
IconsetBase:: |
public | function |
Return the name of the iconset. Overrides IconsetInterface:: |
|
IconsetBase:: |
public | function | Get the path to the iconset. | |
IconsetBase:: |
public | function |
Return the name of the publisher. Overrides IconsetInterface:: |
|
IconsetBase:: |
public | function |
Return the url of the publisher. Overrides IconsetInterface:: |
|
IconsetBase:: |
public | function | Set the path for the given iconset. | 1 |
IconsetBase:: |
public | function |
Constructs a \Drupal\Component\Plugin\PluginBase object. Overrides PluginBase:: |
|
MessengerTrait:: |
protected | property | The messenger. | 29 |
MessengerTrait:: |
public | function | Gets the messenger. | 29 |
MessengerTrait:: |
public | function | Sets the messenger. | |
Nouveller:: |
public | function |
Return the path of an icon for the given platform (iconName) and style. Overrides IconsetInterface:: |
|
Nouveller:: |
public | function |
Return the available styles. Overrides IconsetInterface:: |
|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |