Skip to content

Commit e358210

Browse files
committed
Allow setting allow_rendering via XML layout
1 parent 76ba09a commit e358210

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Component/ComponentViewModel.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,13 @@ public function getLazyUpdateTimeout(): int
199199

200200
public function isAllowRendering(): bool
201201
{
202+
if ($this->hasBlock()) {
203+
$allowRendering = $this->getBlock()->getAllowRendering();
204+
if (is_bool($allowRendering)) {
205+
return $allowRendering;
206+
}
207+
}
208+
202209
return $this->allowRendering;
203210
}
204211

0 commit comments

Comments
 (0)