You are here

public function ParagraphsItemController::page in Paragraphs table 8

Displays a paragraphs item.

Parameters

\Drupal\paragraphs\Entity\Paragraph $paragraph: The Paragraph item we are displaying.

Return value

array An array suitable for drupal_render().

1 string reference to 'ParagraphsItemController::page'
paragraphs_table.routing.yml in ./paragraphs_table.routing.yml
paragraphs_table.routing.yml

File

src/Controller/ParagraphsItemController.php, line 66

Class

ParagraphsItemController
Returns responses for paragraphs item routes.

Namespace

Drupal\paragraphs_table\Controller

Code

public function page(Paragraph $paragraph) {
  return $this
    ->buildPage($paragraph);
}