public function getChildren(ConfigurationInterface $configuration)
    {
        $children = [];

        foreach ($this->configurations as $child) {
            if ($child->getParentId() === $configuration->getResourceId()) {
                $children[$child->getResourceName()] = $child;
            }
        }

        return $children;
    }
public function getChildren(ConfigurationInterface $configuration)
    {
        $children = [];

        foreach ($this->configurations as $child) {
            if ($child->getParentId() === $configuration->getResourceId()) {
                $children[$child->getResourceName()] = $child;
            }
        }

        return $children;
    }
public function getChildren ( ConfigurationInterface $ configuration ) { $ children = [ ] ; foreach ( $ this -> configurations as $ child ) { if ( $ child -> getParentId ( ) === $ configuration -> getResourceId ( ) ) { $ children [ $ child -> getResourceName ( ) ] = $ child ; } } return $ children ; }
Returns all the children configuration.

@param ConfigurationInterface $configuration

@return ConfigurationInterface[]
Returns all the children configuration .