function HelpTestTwigNodeVisitor::getState

Same name in other branches
  1. 10 core/modules/help/tests/modules/help_topics_twig_tester/src/HelpTestTwigNodeVisitor.php \Drupal\help_topics_twig_tester\HelpTestTwigNodeVisitor::getState()
  2. 11.x core/modules/help/tests/modules/help_topics_twig_tester/src/HelpTestTwigNodeVisitor.php \Drupal\help_topics_twig_tester\HelpTestTwigNodeVisitor::getState()

Returns the state information.

Return value

array The state information.

1 call to HelpTestTwigNodeVisitor::getState()
HelpTestTwigNodeVisitor::doLeaveNode in core/modules/help_topics/tests/modules/help_topics_twig_tester/src/HelpTestTwigNodeVisitor.php

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,
    ]);
}

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