You are here

public function EntityEmbedTestTwigController::idRender in Entity Embed 8

Menu callback for testing entity_embed twig extension using entity ID.

1 string reference to 'EntityEmbedTestTwigController::idRender'
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 13

Class

EntityEmbedTestTwigController
Controller routines for Twig theme test routes.

Namespace

Drupal\entity_embed_test

Code

public function idRender() {
  return [
    '#theme' => 'entity_embed_twig_test',
    '#entity_type' => 'node',
    '#id' => '1',
  ];
}