Change record status: 
Project: 
Introduced in branch: 
11.x
Introduced in version: 
11.5.0
Description: 

Views::getHandlerTypes() no longer caches its result. Each call now returns a new array of TranslatableMarkup objects.

  • Views::t() (protected static) is deprecated in Drupal 11.5 and removed from Drupal 13. There is no replacement for the caching behavior. For translations, use new TranslatableMarkup() or StringTranslationTrait.
  • Views::$translationManager and Views::$handlerTypes (protected static) are deprecated in Drupal 11.5 and removed from Drupal 13. Core no longer reads or writes them. There is no replacement.

For subclasses, overriding Views::t() no longer changes the labels that getHandlerTypes() returns. Code that read static::$handlerTypes now receives NULL. Call getHandlerTypes() instead.

Impacts: 
Module developers