Habari\Plugin::_help_plugin_config_plugin PHP Метод

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

Registered to the plugin_config hook to supply help via a plugin's help in xml
public _help_plugin_config_plugin ( array $actions, string $plugin_id ) : array
$actions array An array of actions applicable to this plugin
$plugin_id string The plugin id to which the actions belong
Результат array The modified array of actions
    public function _help_plugin_config_plugin($actions, $plugin_id)
    {
        if ($plugin_id == $this->plugin_id()) {
            foreach ($this->info->help as $help) {
                $name = (string) $help['name'];
                if ($name == '') {
                    $name = '_help';
                }
                // @locale Displayed as an icon indicating there is help text available for a plugin.
                $actions[$name] = _t('?');
            }
        }
        return $actions;
    }