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

Breadcrumb

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

function InlineTemplate::getInfo

Overrides ElementInterface::getInfo

File

core/lib/Drupal/Core/Render/Element/InlineTemplate.php, line 32

Class

InlineTemplate
Provides a render element where the user supplies an in-line Twig template.

Namespace

Drupal\Core\Render\Element

Code

public function getInfo() {
    $class = static::class;
    return [
        '#pre_render' => [
            [
                $class,
                'preRenderInlineTemplate',
            ],
        ],
        '#template' => '',
        '#context' => [],
    ];
}

API Navigation

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