You are here

public function AjaxController::ajax in Paragraphs table 8

Return html render field paragraphs.

1 string reference to 'AjaxController::ajax'
paragraphs_table.routing.yml in ./paragraphs_table.routing.yml
paragraphs_table.routing.yml

File

src/Controller/AjaxController.php, line 98

Class

AjaxController
Returns responses for paragraphs item routes.

Namespace

Drupal\paragraphs_table\Controller

Code

public function ajax($field_name, $host_type, $host_id) {
  return $this
    ->json($field_name, $host_type, $host_id, 'table');
}