Skip to content
Snippets Groups Projects

Draft: First version, renders basic SDCs.

1 open thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
23 use CustomElementGeneratorTrait;
24 use CurrentRouteMatchTrait;
25 use EntityTypeManagerTrait;
26
27 /**
28 * Renders entity pages into custom elements.
29 *
30 * @param string $view_mode
31 * (optional) The view mode to use. Defaults to 'full'.
32 *
33 * @return \Drupal\custom_elements\CustomElement
34 * Returns CustomElement object.
35 *
36 * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException
37 */
38 public function entityView($view_mode = 'full') {
  • Please register or sign in to reply
    Loading