Neos\ContentRepository\Domain\Service\Cache\FirstLevelNodeCache::setChildNodesByPathAndNodeTypeFilter PHP Метод

setChildNodesByPathAndNodeTypeFilter() публичный Метод

The nodes will each be added with their path and identifier as well.
public setChildNodesByPathAndNodeTypeFilter ( string $path, string $nodeTypeFilter, array $nodes ) : void
$path string
$nodeTypeFilter string
$nodes array
Результат void
    public function setChildNodesByPathAndNodeTypeFilter($path, $nodeTypeFilter, array $nodes)
    {
        if (!isset($this->childNodesByPathAndNodeTypeFilter[$path])) {
            $this->childNodesByPathAndNodeTypeFilter[$path] = array();
        }
        foreach ($nodes as $node) {
            /** @var NodeInterface $node */
            $this->nodesByPath[$node->getPath()] = $node;
            $this->nodesByIdentifier[$node->getIdentifier()] = $node;
        }
        $this->childNodesByPathAndNodeTypeFilter[$path][$nodeTypeFilter] = $nodes;
    }