Apple_Actions\API_Action::is_api_configuration_valid PHP Метод

is_api_configuration_valid() защищенный Метод

Check if the API configuration is valid.
protected is_api_configuration_valid ( ) : boolean
Результат boolean
    protected function is_api_configuration_valid()
    {
        $api_key = $this->get_setting('api_key');
        $api_secret = $this->get_setting('api_secret');
        $api_channel = $this->get_setting('api_channel');
        if (empty($api_key) || empty($api_secret) || empty($api_channel)) {
            return false;
        }
        return true;
    }