You are here

public function PlaceholderGeneratorInterface::canCreatePlaceholder in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Render/PlaceholderGeneratorInterface.php \Drupal\Core\Render\PlaceholderGeneratorInterface::canCreatePlaceholder()

Analyzes whether the given render array can be placeholdered.

Parameters

array $element: A render array. Its #lazy_builder and #create_placeholder properties are analyzed.

Return value

bool

1 method overrides PlaceholderGeneratorInterface::canCreatePlaceholder()
PlaceholderGenerator::canCreatePlaceholder in core/lib/Drupal/Core/Render/PlaceholderGenerator.php
Analyzes whether the given render array can be placeholdered.

File

core/lib/Drupal/Core/Render/PlaceholderGeneratorInterface.php, line 33
Contains \Drupal\Core\Render\PlaceholderGeneratorInterface.

Class

PlaceholderGeneratorInterface
Defines an interface for turning a render array into a placeholder.

Namespace

Drupal\Core\Render

Code

public function canCreatePlaceholder(array $element);