You are here

public function EntityEmbedTestTwigController::labelPluginRender in Entity Embed 8

Menu callback.

Used for testing entity_embed twig extension using 'label' Entity Embed Display plugin.

1 string reference to 'EntityEmbedTestTwigController::labelPluginRender'
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 27

Class

EntityEmbedTestTwigController
Controller routines for Twig theme test routes.

Namespace

Drupal\entity_embed_test

Code

public function labelPluginRender() {
  return [
    '#theme' => 'entity_embed_twig_test',
    '#entity_type' => 'node',
    '#id' => '1',
    '#display_plugin' => 'entity_reference:entity_reference_label',
  ];
}