use Drupal\Core\Routing\UrlGeneratorTrait;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Symfony\Component\DependencyInjection\ContainerInterface;
+use Drupal\Core\Messenger\MessengerTrait;
/**
* Utility base class for thin controllers.
use LinkGeneratorTrait;
use LoggerChannelTrait;
+ use MessengerTrait;
use RedirectDestinationTrait;
use StringTranslationTrait;
use UrlGeneratorTrait;
/**
* The state service.
*
- * @var \Drupal\Core\KeyValueStore\KeyValueStoreInterface
+ * @var \Drupal\Core\State\StateInterface
*/
protected $stateService;
* needs to be the same across development, production, etc. environments
* (for example, the system maintenance message) should use config() instead.
*
- * @return \Drupal\Core\KeyValueStore\KeyValueStoreInterface
+ * @return \Drupal\Core\State\StateInterface
*/
protected function state() {
if (!$this->stateService) {