code: protected function methodAlert($args, $meta)
      {
          $classToMethod = array(
              'danger' => 'error',
              'info' => 'info',
              'success' => 'info',
              'warning' => 'warn',
          );
          $msg = \str_replace('<br />', ", \n", $args[0]);
          $method = $meta['class'];
          if (isset($classToMethod[$method])) {
              $method = $classToMethod[$method];
          }
          return array($method, array($msg));
      }
docs: Handle alert method
  
  @param array $args arguments
  @param array $meta meta info
  
  @return array array($method, $args)