Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SingleFlushStrategy.php

class 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

  • class \Drupal\Core\Render\Placeholder\SingleFlushStrategy implements \Drupal\Core\Render\Placeholder\PlaceholderStrategyInterface

Expanded class hierarchy of 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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal