public function OpenCommand::render in Colorbox Load 8
Render.
.
Overrides CommandInterface::render
File
- src/
OpenCommand.php, line 34
Class
- OpenCommand
- Defines an AJAX command to open content in a colorbox.
Namespace
Drupal\colorbox_loadCode
public function render() {
return [
'command' => 'colorboxLoadOpen',
'data' => $this->content,
];
}