function TestLocalActionWithConfig::getTitle

Overrides LocalActionDefault::getTitle

File

core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalActionWithConfig.php, line 24

Class

TestLocalActionWithConfig
Defines a test local action plugin class.

Namespace

Drupal\menu_test\Plugin\Menu\LocalAction

Code

public function getTitle(Request $request = NULL) {
  return $this->config
    ->get('title');
}

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