PlaceholderStrategyInterface.php 822 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Drupal\Core\Render\Placeholder;
  3. /**
  4. * Provides an interface for defining a placeholder strategy service.
  5. */
  6. interface PlaceholderStrategyInterface {
  7. /**
  8. * Processes placeholders to render them with different strategies.
  9. *
  10. * @param array $placeholders
  11. * The placeholders to process, with the keys being the markup for the
  12. * placeholders and the values the corresponding render array describing the
  13. * data to be rendered.
  14. *
  15. * @return array
  16. * The resulting placeholders, with a subset of the keys of $placeholders
  17. * (and those being the markup for the placeholders) but with the
  18. * corresponding render array being potentially modified to render e.g. an
  19. * ESI or BigPipe placeholder.
  20. */
  21. public function processPlaceholders(array $placeholders);
  22. }