public function PlaceholderGeneratorInterface::shouldAutomaticallyPlaceholder in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Render/PlaceholderGeneratorInterface.php \Drupal\Core\Render\PlaceholderGeneratorInterface::shouldAutomaticallyPlaceholder()
Whether the given render array should be automatically placeholdered.
Parameters
array $element: The render array whose cacheability to analyze.
Return value
bool Whether the given render array's cacheability meets the placeholdering conditions.
1 method overrides PlaceholderGeneratorInterface::shouldAutomaticallyPlaceholder()
- PlaceholderGenerator::shouldAutomaticallyPlaceholder in core/
lib/ Drupal/ Core/ Render/ PlaceholderGenerator.php - Whether the given render array should be automatically placeholdered.
File
- core/
lib/ Drupal/ Core/ Render/ PlaceholderGeneratorInterface.php, line 45 - Contains \Drupal\Core\Render\PlaceholderGeneratorInterface.
Class
- PlaceholderGeneratorInterface
- Defines an interface for turning a render array into a placeholder.
Namespace
Drupal\Core\RenderCode
public function shouldAutomaticallyPlaceholder(array $element);