public function EntityEmbedTestTwigController::labelPluginNoLinkRender in Entity Embed 8
Menu callback.
Used for testing entity_embed twig extension using 'label' Entity Embed Display plugin without linking to the node.
1 string reference to 'EntityEmbedTestTwigController::labelPluginNoLinkRender'
- entity_embed_test.routing.yml in tests/
modules/ entity_embed_test/ entity_embed_test.routing.yml - tests/modules/entity_embed_test/entity_embed_test.routing.yml
File
- tests/
modules/ entity_embed_test/ src/ EntityEmbedTestTwigController.php, line 42
Class
- EntityEmbedTestTwigController
- Controller routines for Twig theme test routes.
Namespace
Drupal\entity_embed_testCode
public function labelPluginNoLinkRender() {
return [
'#theme' => 'entity_embed_twig_test',
'#entity_type' => 'node',
'#id' => '1',
'#display_plugin' => 'entity_reference:entity_reference_label',
'#display_settings' => [
'link' => 0,
],
];
}