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

Breadcrumb

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

function ChainedPlaceholderStrategy::addPlaceholderStrategy

Adds a placeholder strategy to use.

Parameters

\Drupal\Core\Render\Placeholder\PlaceholderStrategyInterface $strategy: The strategy to add to the placeholder strategies.

File

core/lib/Drupal/Core/Render/Placeholder/ChainedPlaceholderStrategy.php, line 25

Class

ChainedPlaceholderStrategy
Renders placeholders using a chain of placeholder strategies.

Namespace

Drupal\Core\Render\Placeholder

Code

public function addPlaceholderStrategy(PlaceholderStrategyInterface $strategy) {
    $this->placeholderStrategies[] = $strategy;
}

API Navigation

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