Skip to content

Commit

Permalink
[TASK] Rename variable for layoutRootPaths (#351)
Browse files Browse the repository at this point in the history
Use the same variable name as for the settings to be loaded to make the context clearer.
  • Loading branch information
mcmietz authored Feb 19, 2025
1 parent d06ccdf commit 4d92887
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Backend/Preview/PageLayout.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ protected function getContentBlocksPartialRootPaths(string $contentBlockPrivateP
*/
protected function getContentBlocksLayoutRootPaths(string $contentBlockPrivatePath, int $pageUid): array
{
$partialRootPaths = $this->rootPathsSettings->getContentBlocksLayoutRootPaths($pageUid);
$partialRootPaths[] = $contentBlockPrivatePath . '/layouts';
return $partialRootPaths;
$layoutRootPaths = $this->rootPathsSettings->getContentBlocksLayoutRootPaths($pageUid);
$layoutRootPaths[] = $contentBlockPrivatePath . '/layouts';
return $layoutRootPaths;
}

protected function getContentBlockPrivatePath(ContentTypeInterface $contentTypeDefinition): string
Expand Down

0 comments on commit 4d92887

Please sign in to comment.