Sulu\Bundle\ContentBundle\Controller\NodeController::getWebspaceNodesByPaths PHP Метод

getWebspaceNodesByPaths() приватный Метод

private getWebspaceNodesByPaths ( array $paths, string $webspaceKey, string $locale, Sulu\Component\Content\Repository\Mapping\MappingInterface $mapping, array $webspaces, array $contents, Sulu\Component\Security\Authentication\UserInterface $user ) : Content[]
$paths array
$webspaceKey string
$locale string
$mapping Sulu\Component\Content\Repository\Mapping\MappingInterface
$webspaces array
$contents array
$user Sulu\Component\Security\Authentication\UserInterface
Результат Sulu\Component\Content\Repository\Content[]
    private function getWebspaceNodesByPaths(array $paths, $webspaceKey, $locale, MappingInterface $mapping, array $webspaces, array $contents, UserInterface $user)
    {
        $webspaceContents = $this->get('sulu_content.content_repository')->findByPaths($paths, $locale, $mapping, $user);
        foreach ($webspaceContents as $webspaceContent) {
            $webspaceContent->setDataProperty('title', $webspaces[$webspaceContent->getWebspaceKey()]->getName());
            if ($webspaceContent->getWebspaceKey() === $webspaceKey) {
                $webspaceContent->setChildren($contents);
            }
        }
        return $webspaceContents;
    }