public function ErlStateResetCommand::render in Entity Reference with Layout 8
Render custom ajax command.
Return value
ajax Command function.
Overrides CommandInterface::render
File
- src/
Ajax/ ErlStateResetCommand.php, line 32
Class
- ErlStateResetCommand
- Class ErlState.
Namespace
Drupal\entity_reference_layout\AjaxCode
public function render() {
return [
'command' => 'resetErlState',
'data' => [
"id" => $this->id,
],
];
}