getDefaultAction() public method

Get the default action
public getDefaultAction ( ) : string
return string
 /**
  * Load the config file for the requested module.
  * In the config file we have to find disabled actions, the constructor
  * will read the folder and set possible actions
  * Other configurations will be stored in it also.
  */
 public function loadConfig()
 {
     // check if we can load the config file
     $configClass = 'Backend\\Modules\\' . $this->getModule() . '\\Config';
     if ($this->getModule() == 'Core') {
         $configClass = 'Backend\\Core\\Config';
     }
     // validate if class exists (aka has correct name)
     if (!class_exists($configClass)) {
         throw new Exception('The config file is present, but the classname should be: ' . $configClassName . '.');
     }
     // create config-object, the constructor will do some magic
     $this->config = new $configClass($this->getKernel(), $this->getModule());
     // set action
     $action = $this->config->getDefaultAction() !== null ? $this->config->getDefaultAction() : 'Index';
 }