You are here

ActivitySendEmailController.php in Open Social 10.1.x

File

modules/custom/activity_send/modules/activity_send_email/src/Controller/ActivitySendEmailController.php
View source
<?php

namespace Drupal\activity_send_email\Controller;

use Drupal\Core\Controller\ControllerBase;

/**
 * Controller class for activity send email module.
 *
 * @package Drupal\activity_send_email\Controller
 */
class ActivitySendEmailController extends ControllerBase {

  /**
   * Redirect to user edit page.
   *
   * @return \Symfony\Component\HttpFoundation\RedirectResponse
   *   Return Redirect to the user account.
   */
  public function userEditPage() {
    return $this
      ->redirect('entity.user.edit_form', [
      'user' => $this
        ->currentUser()
        ->id(),
    ]);
  }

}

Classes

Namesort descending Description
ActivitySendEmailController Controller class for activity send email module.