Trismegiste\Mondrian\Config\Helper::getGraphConfig PHP Method

getGraphConfig() public method

Get the graph configuration
public getGraphConfig ( string $dir ) : array
$dir string filepath to the package directory
return array the full config
    public function getGraphConfig($dir)
    {
        $cfg = $this->getConfig($dir);
        return $cfg['graph'];
    }

Usage Example

Example #1
0
 /**
  * get the graph section of the configuration for this package
  *
  * @param string $dir the root dir of the package
  *
  * @return array
  */
 protected function getConfig($dir)
 {
     $helper = new Helper();
     return $helper->getGraphConfig($dir);
 }