function MenuLegacyTest::testSecondaryLocalTasks
Tests deprecation of the menu_secondary_local_tasks() function.
@expectedDeprecation menu_secondary_local_tasks() is deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Menu\LocalTaskManagerInterface::getLocalTasks() instead. See https://www.drupal.org/node/2874695
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Menu/ MenuLegacyTest.php, line 37
Class
- MenuLegacyTest
- Deprecation tests cases for the menu layer.
Namespace
Drupal\KernelTests\Core\MenuCode
public function testSecondaryLocalTasks() {
$this->assertSame('', menu_secondary_local_tasks());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.