Piwik\Plugin::getInformation PHP Метод

getInformation() публичный Метод

- 'description' => string // 1-2 sentence description of the plugin - 'author' => string // plugin author - 'author_homepage' => string // author homepage URL (or email "mailto:[email protected]") - 'homepage' => string // plugin homepage URL - 'license' => string // plugin license - 'version' => string // plugin version number; examples and 3rd party plugins must not use Version::VERSION; 3rd party plugins must increment the version number with each plugin release - 'theme' => bool // Whether this plugin is a theme (a theme is a plugin, but a plugin is not necessarily a theme)
Устаревший:
public getInformation ( ) : array
Результат array
    public function getInformation()
    {
        return $this->pluginInformation;
    }

Usage Example

Пример #1
0
 public function getInformation()
 {
     $suffix = Piwik::translate('SitesManager_PiwikOffersEcommerceAnalytics', array('<a href="http://piwik.org/docs/ecommerce-analytics/" target="_blank">', '</a>'));
     $info = parent::getInformation();
     $info['description'] .= ' ' . $suffix;
     return $info;
 }
All Usage Examples Of Piwik\Plugin::getInformation