Sets the theme registry.
\Drupal\Core\Theme\Registry $theme_registry: The theme registry.
$this
public function setThemeRegistry(Registry $theme_registry) { $this->themeRegistry = $theme_registry; return $this; }