function TestHelpSection::listTopics

Same name in other branches
  1. 9 core/modules/help_topics/tests/modules/help_topics_test/src/Plugin/HelpSection/TestHelpSection.php \Drupal\help_topics_test\Plugin\HelpSection\TestHelpSection::listTopics()
  2. 8.9.x core/modules/help_topics/tests/modules/help_topics_test/src/Plugin/HelpSection/TestHelpSection.php \Drupal\help_topics_test\Plugin\HelpSection\TestHelpSection::listTopics()
  3. 11.x core/modules/help/tests/modules/help_topics_test/src/Plugin/HelpSection/TestHelpSection.php \Drupal\help_topics_test\Plugin\HelpSection\TestHelpSection::listTopics()

Overrides HelpSectionPluginInterface::listTopics

File

core/modules/help/tests/modules/help_topics_test/src/Plugin/HelpSection/TestHelpSection.php, line 30

Class

TestHelpSection
Provides a searchable help section for testing.

Namespace

Drupal\help_topics_test\Plugin\HelpSection

Code

public function listTopics() {
    return [
        Link::fromTextAndUrl('Foo', Url::fromUri('https://foo.com')),
        Link::fromTextAndUrl('Bar', Url::fromUri('https://bar.com')),
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.