You are here

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_load

Code

public function render() {
  return [
    'command' => 'colorboxLoadOpen',
    'data' => $this->content,
  ];
}