models/Credential.php
public function getHandlers()
    {
        $handlers = array(
            'key' => array(
                'name' => $this->translation->text('API key'),
                'handlers' => array(
                    'delete' => array(__CLASS__, 'delete'),
                    'edit' => array('gplcart\\modules\\gapi\\controllers\\Credential', 'editKeyCredential')
                )
            ),
            'oauth' => array(
                'name' => $this->translation->text('OAuth client ID'),
                'handlers' => array(
                    'delete' => array(__CLASS__, 'delete'),
                    'edit' => array('gplcart\\modules\\gapi\\controllers\\Credential', 'editOauthCredential')
                )
            ),
            'service' => array(
                'name' => $this->translation->text('Service account key'),
                'handlers' => array(
                    'delete' => array(__CLASS__, 'deleteService'),
                    'edit' => array('gplcart\\modules\\gapi\\controllers\\Credential', 'editServiceCredential')
                )
            )
        );

        $this->hook->attach('module.gapi.credential.handlers', $handlers);
        return $handlers;
    }
public function getHandlers()
    {
        $handlers = array(
            'key' => array(
                'name' => $this->translation->text('API key'),
                'handlers' => array(
                    'delete' => array(__CLASS__, 'delete'),
                    'edit' => array('gplcart\\modules\\gapi\\controllers\\Credential', 'editKeyCredential')
                )
            ),
            'oauth' => array(
                'name' => $this->translation->text('OAuth client ID'),
                'handlers' => array(
                    'delete' => array(__CLASS__, 'delete'),
                    'edit' => array('gplcart\\modules\\gapi\\controllers\\Credential', 'editOauthCredential')
                )
            ),
            'service' => array(
                'name' => $this->translation->text('Service account key'),
                'handlers' => array(
                    'delete' => array(__CLASS__, 'deleteService'),
                    'edit' => array('gplcart\\modules\\gapi\\controllers\\Credential', 'editServiceCredential')
                )
            )
        );

        $this->hook->attach('module.gapi.credential.handlers', $handlers);
        return $handlers;
    }
public function getHandlers ( ) { $ handlers = array ( 'key' => array ( 'name' => $ this -> translation -> text ( 'API key' ) , 'handlers' => array ( 'delete' => array ( __CLASS__ , 'delete' ) , 'edit' => array ( 'gplcart\\modules\\gapi\\controllers\\Credential' , 'editKeyCredential' ) ) ) , 'oauth' => array ( 'name' => $ this -> translation -> text ( 'OAuth client ID' ) , 'handlers' => array ( 'delete' => array ( __CLASS__ , 'delete' ) , 'edit' => array ( 'gplcart\\modules\\gapi\\controllers\\Credential' , 'editOauthCredential' ) ) ) , 'service' => array ( 'name' => $ this -> translation -> text ( 'Service account key' ) , 'handlers' => array ( 'delete' => array ( __CLASS__ , 'deleteService' ) , 'edit' => array ( 'gplcart\\modules\\gapi\\controllers\\Credential' , 'editServiceCredential' ) ) ) ) ; $ this -> hook -> attach ( 'module.gapi.credential.handlers' , $ handlers ) ; return $ handlers ; }
Returns an array of credential handlers
@return array
Returns an array of credential handlers