Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This project is not covered by Drupal’s security advisory policy.
Description
This ajax command works as ReplaceCommand from core but without adding div wrapper.
How to use
Load 'cleanreplacecommand/library' in your theme or attach it in a render array like this:
$form['#attached']['library'][] = 'cleanreplacecommand/library';
And use CleanReplaceCommand in your ajax callback like ReplaceCommand from core :
public function testCleanReplaceCommand(){
$response = new AjaxResponse();
$response->addCommand(new CleanReplaceCommand('#your_id', '<span>some markup</span>') );
return $response;
}
Supporting organizations:
Project information
- Unsupported
Not supported (i.e. abandoned), and no longer being developed. Learn more about dealing with unsupported (abandoned) projects - Obsolete
Use of this project is deprecated. - Module categories: Developer Tools
- Created by javivf on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.