Changing the icon of a module
Created 7 years ago by dominiqueYou can change the icon of your module in the modules class simply by adding the variable protected $icon
.
For example for the redirects module, in the file /core/anomaly/redirects-module/src/RedirectsModule.php
, the $icon
is set to redo
.
class RedirectsModule extends Module
{
/**
* The module icon.
*
* @var string
*/
protected $icon = 'redo';
/**
* The module's sections.
*
* @var array
*/
protected $sections = [
'redirects' => [
'buttons' => [
'new_redirect',
],
],
];
}
When using the default accelerant admin theme you can also use fontawesome icons like this:
protected $icon = 'fa fa-book';
You can also use icons from http://glyphicons.com/