class PlaceholderGenerator

Turns a render array into a placeholder.

Hierarchy

File

core/lib/Drupal/Core/Render/PlaceholderGenerator.php, line 12

Namespace

Drupal\Core\Render

Members

Name Modifiers Type Description
PlaceholderGenerator::$rendererConfig protected property The renderer configuration array.
PlaceholderGenerator::canCreatePlaceholder public function Analyzes whether the given render array can be placeholdered. Overrides PlaceholderGeneratorInterface::canCreatePlaceholder
PlaceholderGenerator::createPlaceholder public function Turns the given element into a placeholder. Overrides PlaceholderGeneratorInterface::createPlaceholder
PlaceholderGenerator::shouldAutomaticallyPlaceholder public function Whether the given render array should be automatically placeholdered. Overrides PlaceholderGeneratorInterface::shouldAutomaticallyPlaceholder
PlaceholderGenerator::__construct public function Constructs a new Placeholder service.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!PlaceholderGenerator.php/class/PlaceholderGenerator/8.1.x