TestLocalAction.php in Drupal 8
Same filename and directory in other branches
Namespace
Drupal\menu_test\Plugin\Menu\LocalActionFile
core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction.phpView 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
Name | Description |
---|---|
TestLocalAction | Defines a test local action plugin class. |