function PlaceholderGeneratorInterface::canCreatePlaceholder
Same name in other branches
- 9 core/lib/Drupal/Core/Render/PlaceholderGeneratorInterface.php \Drupal\Core\Render\PlaceholderGeneratorInterface::canCreatePlaceholder()
- 10 core/lib/Drupal/Core/Render/PlaceholderGeneratorInterface.php \Drupal\Core\Render\PlaceholderGeneratorInterface::canCreatePlaceholder()
- 11.x 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 28
Class
- PlaceholderGeneratorInterface
- Defines an interface for turning a render array into a placeholder.
Namespace
Drupal\Core\RenderCode
public function canCreatePlaceholder(array $element);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.