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

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

Registered to the plugin_ui hook to supply help via a plugin's help in xml
public _help_plugin_ui_plugin ( string $plugin_id, string $action )
$plugin_id string The id of the plugin whose action was triggered
$action string The action triggered
    public function _help_plugin_ui_plugin($plugin_id, $action)
    {
        if ($plugin_id == $this->plugin_id()) {
            foreach ($this->info->help as $help) {
                if ($action == (string) $help['name'] && (string) $help['name'] != '' || $action == '_help' && (string) $help['name'] == '') {
                    echo '<div class="help">' . (string) $help->value . '</div>';
                }
            }
        }
    }