function BookLocalTasksTest::getBookNodeRoutes

Same name in other branches
  1. 9 core/modules/book/tests/src/Unit/Menu/BookLocalTasksTest.php \Drupal\Tests\book\Unit\Menu\BookLocalTasksTest::getBookNodeRoutes()
  2. 8.9.x core/modules/book/tests/src/Unit/Menu/BookLocalTasksTest.php \Drupal\Tests\book\Unit\Menu\BookLocalTasksTest::getBookNodeRoutes()
  3. 11.x core/modules/book/tests/src/Unit/Menu/BookLocalTasksTest.php \Drupal\Tests\book\Unit\Menu\BookLocalTasksTest::getBookNodeRoutes()

Provides a list of routes to test.

File

core/modules/book/tests/src/Unit/Menu/BookLocalTasksTest.php, line 64

Class

BookLocalTasksTest
Tests existence of book local tasks.

Namespace

Drupal\Tests\book\Unit\Menu

Code

public static function getBookNodeRoutes() {
    return [
        [
            'entity.node.canonical',
        ],
        [
            'entity.node.book_outline_form',
        ],
    ];
}

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