src/Controller/TreeCollector.php
private function getChildProvidersOf($parentProvider, $relationships = null)
    {
        if (null === $relationships) {
            $relationships = $this->getEnvironment()->getDataDefinition()->getModelRelationshipDefinition();
        }

        $mySubTables = [];
        foreach ($relationships->getChildConditions($parentProvider) as $condition) {
            $mySubTables[] = $condition->getDestinationName();
        }

        return $mySubTables;
    }
private function getChildProvidersOf($parentProvider, $relationships = null)
    {
        if (null === $relationships) {
            $relationships = $this->getEnvironment()->getDataDefinition()->getModelRelationshipDefinition();
        }

        $mySubTables = [];
        foreach ($relationships->getChildConditions($parentProvider) as $condition) {
            $mySubTables[] = $condition->getDestinationName();
        }

        return $mySubTables;
    }
private function getChildProvidersOf ( $ parentProvider , $ relationships = null ) { if ( null === $ relationships ) { $ relationships = $ this -> getEnvironment ( ) -> getDataDefinition ( ) -> getModelRelationshipDefinition ( ) ; } $ mySubTables = [ ] ; foreach ( $ relationships -> getChildConditions ( $ parentProvider ) as $ condition ) { $ mySubTables [ ] = $ condition -> getDestinationName ( ) ; } return $ mySubTables ; }
Retrieve the child data provider names for the passed parent provider.

@param string                                    $parentProvider The name of the parent provider.
@param null|ModelRelationshipDefinitionInterface $relationships  The relationship information (optional).

@return array
Retrieve the child data provider names for the passed parent provider .