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

Breadcrumb

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

function Template::render

Same name in this branch
  1. 11.1.x vendor/twig/twig/src/Template.php \Twig\Template::render()
1 call to Template::render()
Template::renderTo in vendor/phpunit/php-text-template/src/Template.php
@codeCoverageIgnore

File

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

Class

Template

Namespace

SebastianBergmann\Template

Code

public function render() : string {
    $keys = [];
    foreach (array_keys($this->values) as $key) {
        $keys[] = $this->openDelimiter . $key . $this->closeDelimiter;
    }
    return str_replace($keys, $this->values, $this->template);
}

API Navigation

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