Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 2
SingleFlushStrategy
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 2
 processPlaceholders
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 2
<?php
/**
 * @file
 * Contains \Drupal\Core\Render\Placeholder\SingleFlushStrategy.
 */
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;
  }
}