public function getStaticConfig($key, $default = null)
{
if ($this->static_config === null) {
$this->static_config = [];
if ($this->canReadFile(ElggPluginPackage::STATIC_CONFIG_FILENAME)) {
$this->static_config = $this->includeFile(ElggPluginPackage::STATIC_CONFIG_FILENAME);
}
}
if (array_key_exists($key, $this->static_config)) {
return $this->static_config[$key];
} else {
return $default;
}
}