ValueUpdatedCommand.php in Entity Browser 8
Same filename and directory in other branches
Namespace
Drupal\entity_browser\AjaxFile
src/Ajax/ValueUpdatedCommand.phpView source
<?php
namespace Drupal\entity_browser\Ajax;
use Drupal\Core\Ajax\CommandInterface;
/**
* AJAX command to refresh an entity_browser_entity_reference field widget.
*/
class ValueUpdatedCommand implements CommandInterface {
/**
* The ID for the details element.
*
* @var string
*/
protected $details_id;
/**
* Constructor.
*
* @param string $details_id
* The ID for the details element.
*/
public function __construct($details_id) {
$this->details_id = $details_id;
}
/**
* {@inheritdoc}
*/
public function render() {
return [
'command' => 'entity_browser_value_updated',
'details_id' => $this->details_id,
];
}
}
Classes
Name | Description |
---|---|
ValueUpdatedCommand | AJAX command to refresh an entity_browser_entity_reference field widget. |