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

Breadcrumb

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

function HtmlResponsePlaceholderStrategySubscriber::__construct

Constructs a HtmlResponsePlaceholderStrategySubscriber object.

Parameters

\Drupal\Core\Render\Placeholder\PlaceholderStrategyInterface $placeholder_strategy: The placeholder strategy to use.

File

core/lib/Drupal/Core/EventSubscriber/HtmlResponsePlaceholderStrategySubscriber.php, line 35

Class

HtmlResponsePlaceholderStrategySubscriber
HTML response subscriber to allow for different placeholder strategies.

Namespace

Drupal\Core\EventSubscriber

Code

public function __construct(PlaceholderStrategyInterface $placeholder_strategy) {
    $this->placeholderStrategy = $placeholder_strategy;
}

API Navigation

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