diff options
Diffstat (limited to 'core/Settings/Settings.php')
-rw-r--r-- | core/Settings/Settings.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/Settings/Settings.php b/core/Settings/Settings.php index 6c076f8cac..8181502c7b 100644 --- a/core/Settings/Settings.php +++ b/core/Settings/Settings.php @@ -24,6 +24,13 @@ abstract class Settings protected $pluginName; + /** + * By default the plugin name is shown in the UI when managing plugin settings. However, you can overwrite + * the displayed title by specifying a title. + * @var string + */ + protected $title = ''; + public function __construct() { if (!isset($this->pluginName)) { @@ -38,6 +45,15 @@ abstract class Settings } } + public function getTitle() + { + if (!empty($this->title)) { + return $this->title; + } + + return $this->pluginName; + } + /** * @ignore */ |