Xpressengine\Plugin\PluginHandler::getPluginStatus PHP Method

getPluginStatus() protected method

주어진 플러그인의 상태정보를 조회한다.
protected getPluginStatus ( string $pluginId, null $field = null ) : mixed
$pluginId string plugin id
$field null 'version' or 'status'
return mixed
    protected function getPluginStatus($pluginId, $field = null)
    {
        if ($field === null) {
            $configKey = $pluginId;
        } else {
            $configKey = $pluginId . '.' . $field;
        }
        $configs = $this->getPluginsStatus();
        return array_get($configs, $configKey);
    }