.../src/Controller/NodeAccessTestAutoBubblingController.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/modules/node/tests/modules/node_access_test_auto_bubbling/src/Controller/NodeAccessTestAutoBubblingController.php b/core/modules/node/tests/modules/node_access_test_auto_bubbling/src/Controller/NodeAccessTestAutoBubblingController.php index 4549f91..c7788d0 100644 --- a/core/modules/node/tests/modules/node_access_test_auto_bubbling/src/Controller/NodeAccessTestAutoBubblingController.php +++ b/core/modules/node/tests/modules/node_access_test_auto_bubbling/src/Controller/NodeAccessTestAutoBubblingController.php @@ -44,7 +44,10 @@ public static function create(ContainerInterface $container) { } /** - * Lists the three latest node IDs. + * Lists the three latest published node IDs. + * + * @return array + * A render array. */ public function latest() { $nids = $this->entityQuery->get('node') @@ -53,7 +56,7 @@ public function latest() { ->range(0, 3) ->addTag('node_access') ->execute(); - return ['#markup' => $this->t('The five latest nodes are: !nids.', ['!nids' => implode(', ', $nids)])]; + return ['#markup' => $this->t('The three latest nodes are: !nids.', ['!nids' => implode(', ', $nids)])]; } }