League\CommonMark\Environment::getConfig PHP Method

getConfig() public method

public getConfig ( string | null $key = null, mixed $default = null ) : mixed
$key string | null
$default mixed
return mixed
    public function getConfig($key = null, $default = null)
    {
        return $this->config->getConfig($key, $default);
    }

Usage Example

コード例 #1
0
ファイル: HtmlRenderer.php プロジェクト: RonnyLV/commonmark
 /**
  * @param string     $option
  * @param mixed|null $default
  *
  * @return mixed|null
  */
 public function getOption($option, $default = null)
 {
     return $this->environment->getConfig('renderer/' . $option, $default);
 }
All Usage Examples Of League\CommonMark\Environment::getConfig