Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. class AdvancedHelpManager extends DefaultPluginManager {
  2.  
  3. /**
  4. * Search the system for all available help topics.
  5. * @todo check visibility of the method.
  6. */
  7. public function getTopics() {
  8. $ini = $this->parseHelp();
  9. return $ini['topics'];
  10. }
  11. }
  12.  
  13. $foo = new AdvancedHelpManager();
  14. $bar = $foo->getTopics();
  15.  
  16. $plugin_manager = Drupal::service('plugin.manager.advanced_help');
  17. $topics = $plugin_manager->getTopics();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement