TestLocalAction.php

Same filename in other branches
  1. 8.9.x core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction.php
  2. 10 core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction.php
  3. 11.x core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction.php

Namespace

Drupal\menu_test\Plugin\Menu\LocalAction

File

core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction.php

View source
<?php

namespace Drupal\menu_test\Plugin\Menu\LocalAction;

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

/**
 * Defines a test local action plugin class.
 */
class TestLocalAction extends LocalActionDefault {
    
    /**
     * {@inheritdoc}
     */
    public function getTitle(Request $request = NULL) {
        return 'Title override';
    }

}

Classes

Title Deprecated Summary
TestLocalAction Defines a test local action plugin class.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.