class LayoutParagraphsStateResetCommand in Layout Paragraphs 1.0.x
Class LayoutParagraphsStateResetCommand.
Hierarchy
- class \Drupal\layout_paragraphs\Ajax\LayoutParagraphsStateResetCommand implements CommandInterface
Expanded class hierarchy of LayoutParagraphsStateResetCommand
1 file declares its use of LayoutParagraphsStateResetCommand
- LayoutParagraphsWidget.php in src/
Plugin/ Field/ FieldWidget/ LayoutParagraphsWidget.php
File
- src/
Ajax/ LayoutParagraphsStateResetCommand.php, line 10
Namespace
Drupal\layout_paragraphs\AjaxView source
class LayoutParagraphsStateResetCommand implements CommandInterface {
/**
* The wrapper DOM id.
*
* @var string
*/
protected $id;
/**
* Constructs an ErlState instance.
*/
public function __construct($id) {
$this->id = $id;
}
/**
* Render custom ajax command.
*
* @return ajax
* Command function.
*/
public function render() {
return [
'command' => 'resetLayoutParagraphsState',
'data' => [
"id" => $this->id,
],
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LayoutParagraphsStateResetCommand:: |
protected | property | The wrapper DOM id. | |
LayoutParagraphsStateResetCommand:: |
public | function |
Render custom ajax command. Overrides CommandInterface:: |
|
LayoutParagraphsStateResetCommand:: |
public | function | Constructs an ErlState instance. |