SingleFlushStrategy.php 574 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Drupal\Core\Render\Placeholder;
  3. /**
  4. * Defines the 'single_flush' placeholder strategy.
  5. *
  6. * This is designed to be the fallback strategy, so should have the lowest
  7. * priority. All placeholders that are not yet replaced at this point will be
  8. * rendered as is and delivered directly.
  9. */
  10. class SingleFlushStrategy implements PlaceholderStrategyInterface {
  11. /**
  12. * {@inheritdoc}
  13. */
  14. public function processPlaceholders(array $placeholders) {
  15. // Return all placeholders as is; they should be rendered directly.
  16. return $placeholders;
  17. }
  18. }