Base command that only exists to simplify AJAX commands.
Hierarchy
- class \Drupal\Core\Ajax\BaseCommand implements CommandInterface
File
- core/lib/Drupal/Core/Ajax/BaseCommand.php, line 8
Namespace
Drupal\Core\Ajax
Members
Name | Modifiers | Type | Description |
---|---|---|---|
BaseCommand::$command | protected | property | The name of the command. |
BaseCommand::$data | protected | property | The data to pass on to the client side. |
BaseCommand::render | public | function | Return an array to be run through json_encode and sent to the client. Overrides CommandInterface::render |
BaseCommand::__construct | public | function | Constructs a BaseCommand object. |
Please login to continue.