3 namespace Drupal\entity_browser\Ajax;
5 use Drupal\Core\Ajax\CommandInterface;
8 * AJAX command to refresh an entity_browser_entity_reference field widget.
10 class ValueUpdatedCommand implements CommandInterface {
13 * The ID for the details element.
17 protected $details_id;
22 * @param string $details_id
23 * The ID for the details element.
25 public function __construct($details_id) {
26 $this->details_id = $details_id;
32 public function render() {
34 'command' => 'entity_browser_value_updated',
35 'details_id' => $this->details_id,