TestTaskWithUserInput.php 448 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<?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 {

  /**
16
   * {@inheritdoc}
17 18 19 20 21 22
   */
  public function getTitle(Request $request = NULL) {
    return "<script>alert('Welcome to the jungle!')</script>";
  }

}