DataCommand::render

public DataCommand::render()

Implements Drupal\Core\Ajax\CommandInterface:render().

Overrides CommandInterface::render

File

core/lib/Drupal/Core/Ajax/DataCommand.php, line 63

Class

DataCommand
An AJAX command for implementing jQuery's data() method.

Namespace

Drupal\Core\Ajax

Code

public function render() {

  return array(
    'command' => 'data',
    'selector' => $this->selector,
    'name' => $this->name,
    'value' => $this->value,
  );
}
doc_Drupal
2016-10-29 09:00:02
Comments
Leave a Comment

Please login to continue.