You are here

public function ValueUpdatedCommand::render in Entity Browser 8.2

Same name and namespace in other branches
  1. 8 src/Ajax/ValueUpdatedCommand.php \Drupal\entity_browser\Ajax\ValueUpdatedCommand::render()

Return an array to be run through json_encode and sent to the client.

Overrides CommandInterface::render

File

src/Ajax/ValueUpdatedCommand.php, line 32

Class

ValueUpdatedCommand
AJAX command to refresh an entity_browser_entity_reference field widget.

Namespace

Drupal\entity_browser\Ajax

Code

public function render() {
  return [
    'command' => 'entity_browser_value_updated',
    'details_id' => $this->details_id,
  ];
}