function EntityTestBlock::createPlaceholder
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/entity_test/src/Plugin/Block/EntityTestBlock.php \Drupal\entity_test\Plugin\Block\EntityTestBlock::createPlaceholder()
File
-
core/
modules/ system/ tests/ modules/ entity_test/ src/ Plugin/ Block/ EntityTestBlock.php, line 44
Class
- EntityTestBlock
- Provides a block that renders an entity with parallel placeholder rendering.
Namespace
Drupal\entity_test\Plugin\BlockCode
public function createPlaceholder() : bool {
// Render as a placeholder so this block is rendered in a Fiber, enabling
// tests to verify concurrent entity rendering behavior.
return TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.