Block/Adminhtml/Dashboard/Information.php
public function getApiValid()
    {
        $apiUsername = $this->helper->getApiUsername();
        $apiPassword = $this->helper->getApiPassword();

        $result = $this->test->validate($apiUsername, $apiPassword);

        return ($result)? '<span class="message message-success">Valid</span>' :
            '<span class="message message-error">Not Valid</span>';
    }
public function getApiValid()
    {
        $apiUsername = $this->helper->getApiUsername();
        $apiPassword = $this->helper->getApiPassword();

        $result = $this->test->validate($apiUsername, $apiPassword);

        return ($result)? '<span class="message message-success">Valid</span>' :
            '<span class="message message-error">Not Valid</span>';
    }
public function getApiValid ( ) { $ apiUsername = $ this -> helper -> getApiUsername ( ) ; $ apiPassword = $ this -> helper -> getApiPassword ( ) ; $ result = $ this -> test -> validate ( $ apiUsername , $ apiPassword ) ; return ( $ result ) ? '<span class="message message-success">Valid</span>' : '<span class="message message-error">Not Valid</span>' ; }
Get the api creds are valid.
@return string
Get the api creds are valid .