ControllerBase::$stateService

Same name in other branches
  1. 9 core/lib/Drupal/Core/Controller/ControllerBase.php \Drupal\Core\Controller\ControllerBase::stateService
  2. 8.9.x core/lib/Drupal/Core/Controller/ControllerBase.php \Drupal\Core\Controller\ControllerBase::stateService
  3. 11.x core/lib/Drupal/Core/Controller/ControllerBase.php \Drupal\Core\Controller\ControllerBase::stateService

The state service.

Type: \Drupal\Core\State\StateInterface

File

core/lib/Drupal/Core/Controller/ControllerBase.php, line 90

Class

ControllerBase
Utility base class for thin controllers.

Namespace

Drupal\Core\Controller

Code

protected $stateService;

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