Back to BaseController class

Method registerDefaultTask

public static
registerDefaultTask
(mixed $method)
Register the default task to perform if a mapping is not found.
Parameters
  • string $method The name of the method in the derived class to perform if a named task is not found.
Returns
  • static A \JControllerLegacy object to support chaining.
Since
  • 3.0

Method registerDefaultTask - Source code

/**
 * Register the default task to perform if a mapping is not found.
 *
 * @param   string  $method  The name of the method in the derived class to perform if a named task is not found.
 *
 * @return  static  A \JControllerLegacy object to support chaining.
 *
 * @since   3.0
 */
public function registerDefaultTask($method)
{
    $this->registerTask('__default', $method);
    return $this;
}