TestTaskWithUserInput.php 446 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<?php

/**
 * @file
 * Contains \Drupal\menu_test\Plugin\Menu\LocalTask\TestTaskWithUserInput.
 */

namespace Drupal\menu_test\Plugin\Menu\LocalTask;

use Drupal\Core\Menu\LocalTaskDefault;
use Symfony\Component\HttpFoundation\Request;

class TestTaskWithUserInput extends LocalTaskDefault {

  /**
   * @inheritDoc
   */
  public function getTitle(Request $request = NULL) {
    return "<script>alert('Welcome to the jungle!')</script>";
  }

}