Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Template.php

function Template::renderTo

@codeCoverageIgnore

File

vendor/phpunit/php-text-template/src/Template.php, line 97

Class

Template

Namespace

SebastianBergmann\Template

Code

public function renderTo(string $target) : void {
    if (!@file_put_contents($target, $this->render())) {
        throw new RuntimeException(sprintf('Writing rendered result to "%s" failed', $target));
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal