public function resourceConfigurationFor($resourceName)
    {
        foreach ($this->resourceConfigurations as $config) {
            if ($config->getResource() === $resourceName) {
                return $config;
            }
        }

        return null;
    }
public function resourceConfigurationFor($resourceName)
    {
        foreach ($this->resourceConfigurations as $config) {
            if ($config->getResource() === $resourceName) {
                return $config;
            }
        }

        return null;
    }
public function resourceConfigurationFor ( $ resourceName ) { foreach ( $ this -> resourceConfigurations as $ config ) { if ( $ config -> getResource ( ) === $ resourceName ) { return $ config ; } } return null ; }
Get ResourceConfiguration from resource name.

@param mixed $resourceName
@return ResourceConfiguration|null
Get ResourceConfiguration from resource name .