Jarves\Admin\ObjectCrud::getRoot PHP Method

getRoot() public method

public getRoot ( $scope = null )
    public function getRoot($scope = null)
    {
        if ($this->getObjectDefinition()->getNestedRootAsObject() && $scope === null) {
            throw new \Exception('No `scope` defined.');
        }
        $options['fields'] = $this->getNestedSelection($this->getObjectDefinition()->getNestedRootObjectLabelField());
        return $this->objects->get($this->getObjectDefinition()->getNestedRootObject(), $scope, $options);
    }
ObjectCrud