EmptyHelpSection.php

Same filename in other branches
  1. 8.9.x core/modules/help/tests/modules/help_page_test/src/Plugin/HelpSection/EmptyHelpSection.php
  2. 10 core/modules/help/tests/modules/help_page_test/src/Plugin/HelpSection/EmptyHelpSection.php
  3. 11.x core/modules/help/tests/modules/help_page_test/src/Plugin/HelpSection/EmptyHelpSection.php

Namespace

Drupal\help_page_test\Plugin\HelpSection

File

core/modules/help/tests/modules/help_page_test/src/Plugin/HelpSection/EmptyHelpSection.php

View source
<?php

namespace Drupal\help_page_test\Plugin\HelpSection;

use Drupal\help\Plugin\HelpSection\HelpSectionPluginBase;

/**
 * Provides an empty section for the help page, for testing.
 *
 * @HelpSection(
 *   id = "empty_section",
 *   title = @Translation("Empty section"),
 *   description = @Translation("This description should appear."),
 * )
 */
class EmptyHelpSection extends HelpSectionPluginBase {
    
    /**
     * {@inheritdoc}
     */
    public function listTopics() {
        return [];
    }

}

Classes

Title Deprecated Summary
EmptyHelpSection Provides an empty section for the help page, for testing.

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