function PlaceholderGeneratorInterface::createPlaceholderTag

Generates a placeholder HTML tag.

Parameters

string $tag: The placeholder tag.

array $attributes: An array of key-value pairs to use as tag attributes.

Return value

string The HTML placeholder.

1 method overrides PlaceholderGeneratorInterface::createPlaceholderTag()
PlaceholderGenerator::createPlaceholderTag in core/lib/Drupal/Core/Render/PlaceholderGenerator.php
Generates a placeholder HTML tag.

File

core/lib/Drupal/Core/Render/PlaceholderGeneratorInterface.php, line 78

Class

PlaceholderGeneratorInterface
Defines an interface for turning a render array into a placeholder.

Namespace

Drupal\Core\Render

Code

public static function createPlaceholderTag(string $tag, array $attributes) : string;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.