public function ContentItemBlock::autocompleteGetNodes in Panopoly Widgets 8.2
Gets AJAX response for node autocomplete.
Return value
\Drupal\Core\Ajax\AjaxResponse The AJAX response.
File
- src/
Plugin/ Block/ ContentItemBlock.php, line 186
Class
- ContentItemBlock
- Block that displays a node.
Namespace
Drupal\panopoly_widgets\Plugin\BlockCode
public function autocompleteGetNodes(array &$form, FormStateInterface $form_state) {
$response = new AjaxResponse();
$response
->addCommand(new InvokeCommand(NULL, 'panopolyWidgetsCleanNodeAutoComplete', []));
return $response;
}