Skip to content

Commit

Permalink
Actually return the preloaded nodes in the NcrExtension.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbrown committed Jan 21, 2019
1 parent 4d32287 commit e10358d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG-0.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
This changelog references the relevant changes done in 0.x versions.


## v0.3.7
* Actually return the preloaded nodes in the NcrExtension.


## v0.3.6
* Fix invalid service config for `gdbots_ncr.twig.ncr_extension`.

Expand Down
4 changes: 2 additions & 2 deletions src/Twig/NcrExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,15 @@ public function getNode($ref): ?Node
*/
public function getPreloadedNodes(): array
{
$this->ncrPreloader->getNodes();
return $this->ncrPreloader->getNodes();
}

/**
* @return Node[]
*/
public function getPreloadedPublishedNodes(): array
{
$this->ncrPreloader->getPublishedNodes();
return $this->ncrPreloader->getPublishedNodes();
}

/**
Expand Down

0 comments on commit e10358d

Please sign in to comment.