implementedEvents() public method

Uses Conventions to map controller events to standard component callback method names. By defining one of the callback methods a component is assumed to be interested in the related event. Override this method if you need to add non-conventional event listeners. Or if you want components to listen to non-standard events.
public implementedEvents ( ) : array
return array
 /**
  * implementedEvents
  *
  * Lists all defined events.
  *
  * @return array
  */
 public function implementedEvents()
 {
     return $_events = parent::implementedEvents();
     $events = ['Controller.Users.afterRegister' => 'afterRegister', 'Controller.Users.afterForgotPassword' => 'afterForgotPassword'];
     return array_merge($_events, $events);
 }
 /**
  * Implemented events
  *
  * @return array
  */
 public function implementedEvents()
 {
     $_events = parent::implementedEvents();
     $events = [];
     if ($this->config('lastSeen')) {
         $events['Component.Manager.beforeFilter'] = 'lastSeenEvent';
     }
     if ($this->config('passwordRequests')) {
         $events['Controller.Users.afterForgotPassword'] = '******';
     }
     if ($this->config('lastLogin') || $this->config('passedLogins')) {
         $events['Controller.Users.afterLogin'] = '******';
     }
     if ($this->config('failedLogins')) {
         $events['Controller.Users.afterInvalidLogin'] = '******';
     }
     return array_merge($_events, $events);
 }