class SingleFlushStrategy

Same name in other branches
  1. 9 core/lib/Drupal/Core/Render/Placeholder/SingleFlushStrategy.php \Drupal\Core\Render\Placeholder\SingleFlushStrategy
  2. 10 core/lib/Drupal/Core/Render/Placeholder/SingleFlushStrategy.php \Drupal\Core\Render\Placeholder\SingleFlushStrategy
  3. 11.x core/lib/Drupal/Core/Render/Placeholder/SingleFlushStrategy.php \Drupal\Core\Render\Placeholder\SingleFlushStrategy

Defines the 'single_flush' placeholder strategy.

This is designed to be the fallback strategy, so should have the lowest priority. All placeholders that are not yet replaced at this point will be rendered as is and delivered directly.

Hierarchy

Expanded class hierarchy of SingleFlushStrategy

1 string reference to 'SingleFlushStrategy'
core.services.yml in core/core.services.yml
core/core.services.yml
1 service uses SingleFlushStrategy
placeholder_strategy.single_flush in core/core.services.yml
Drupal\Core\Render\Placeholder\SingleFlushStrategy

File

core/lib/Drupal/Core/Render/Placeholder/SingleFlushStrategy.php, line 12

Namespace

Drupal\Core\Render\Placeholder
View source
class SingleFlushStrategy implements PlaceholderStrategyInterface {
    
    /**
     * {@inheritdoc}
     */
    public function processPlaceholders(array $placeholders) {
        // Return all placeholders as is; they should be rendered directly.
        return $placeholders;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
SingleFlushStrategy::processPlaceholders public function Processes placeholders to render them with different strategies. Overrides PlaceholderStrategyInterface::processPlaceholders

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