SingleFlushStrategy.php

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

Namespace

Drupal\Core\Render\Placeholder

File

core/lib/Drupal/Core/Render/Placeholder/SingleFlushStrategy.php

View source
<?php

namespace Drupal\Core\Render\Placeholder;


/**
 * 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.
 */
class SingleFlushStrategy implements PlaceholderStrategyInterface {
    
    /**
     * {@inheritdoc}
     */
    public function processPlaceholders(array $placeholders) {
        // Return all placeholders as is; they should be rendered directly.
        return $placeholders;
    }

}

Classes

Title Deprecated Summary
SingleFlushStrategy Defines the 'single_flush' placeholder strategy.

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