public function LockFormCommand::render in Content locking (anti-concurrent editing) 8
Same name and namespace in other branches
- 8.2 src/Ajax/LockFormCommand.php \Drupal\content_lock\Ajax\LockFormCommand::render()
Return an array to be run through json_encode and sent to the client.
Overrides CommandInterface::render
File
- src/
Ajax/ LockFormCommand.php, line 32
Class
- LockFormCommand
- Defines an AJAX command to lock current form.
Namespace
Drupal\content_lock\AjaxCode
public function render() {
return [
'command' => 'lockForm',
'selector' => '',
'lockable' => $this->lockable,
'lock' => $this->lock,
];
}