public function ContentTranslationLocalTasksTest::providerTestBlockAdminDisplay in Drupal 9
Same name and namespace in other branches
- 8 core/modules/content_translation/tests/src/Unit/Menu/ContentTranslationLocalTasksTest.php \Drupal\Tests\content_translation\Unit\Menu\ContentTranslationLocalTasksTest::providerTestBlockAdminDisplay()
- 10 core/modules/content_translation/tests/src/Unit/Menu/ContentTranslationLocalTasksTest.php \Drupal\Tests\content_translation\Unit\Menu\ContentTranslationLocalTasksTest::providerTestBlockAdminDisplay()
Provides a list of routes to test.
File
- core/
modules/ content_translation/ tests/ src/ Unit/ Menu/ ContentTranslationLocalTasksTest.php, line 53
Class
- ContentTranslationLocalTasksTest
- Tests content translation local tasks.
Namespace
Drupal\Tests\content_translation\Unit\MenuCode
public function providerTestBlockAdminDisplay() {
return [
[
'entity.node.canonical',
[
[
'content_translation.local_tasks:entity.node.content_translation_overview',
'entity.node.canonical',
'entity.node.edit_form',
'entity.node.delete_form',
'entity.node.version_history',
],
],
],
[
'entity.node.content_translation_overview',
[
[
'content_translation.local_tasks:entity.node.content_translation_overview',
'entity.node.canonical',
'entity.node.edit_form',
'entity.node.delete_form',
'entity.node.version_history',
],
],
],
];
}