Pimcore\Model\Asset\WebDAV\Folder::getChildren PHP Method

getChildren() public method

Returns the children of the asset if the asset is a folder
public getChildren ( ) : array
return array
    public function getChildren()
    {
        $children = [];
        if ($this->asset->hasChilds()) {
            foreach ($this->asset->getChilds() as $child) {
                if ($child->isAllowed("view")) {
                    try {
                        if ($child = $this->getChild($child)) {
                            $children[] = $child;
                        }
                    } catch (\Exception $e) {
                        Logger::warning($e);
                    }
                }
            }
        }
        return $children;
    }