function TempStoreTrait::getRenderer
Retrieves the renderer service if not already present.
Return value
\Drupal\Core\Render\RendererInterface The renderer service.
File
-
src/
Ui/ TempStoreTrait.php, line 69
Class
- TempStoreTrait
- Provides methods for modified rules components in temporary storage.
Namespace
Drupal\rules\UiCode
public function getRenderer() {
if (!isset($this->renderer)) {
$this->renderer = \Drupal::service('renderer');
}
return $this->renderer;
}