You are here

public static function HelpTestTwigNodeVisitor::getState in Drupal 10

Returns the state information.

Return value

array The state information.

2 calls to HelpTestTwigNodeVisitor::getState()
HelpTestTwigNodeVisitor::doLeaveNode in core/modules/help_topics/tests/modules/help_topics_twig_tester/src/HelpTestTwigNodeVisitor.php
HelpTopicsSyntaxTest::verifyTopic in core/modules/help_topics/tests/src/Functional/HelpTopicsSyntaxTest.php
Verifies rendering and standards compliance of one help topic.

File

core/modules/help_topics/tests/modules/help_topics_twig_tester/src/HelpTestTwigNodeVisitor.php, line 146

Class

HelpTestTwigNodeVisitor
Defines a Twig node visitor for testing help topics.

Namespace

Drupal\help_topics_twig_tester

Code

public static function getState() {
  return \Drupal::state()
    ->get(static::STATE_NAME, [
    'manner' => 0,
  ]);
}