protected function DialogHelperTrait::closeDialogCommand in Layout Paragraphs 2.0.x
Returns a CloseDialogComand with the correct selector.
Parameters
\Drupal\layout_paragraphs\LayoutParagraphsLayout $layout: The layout paragraphs layout object.
Return value
\Drupal\Core\Ajax\CommandInterface The close command.
1 call to DialogHelperTrait::closeDialogCommand()
- DeleteComponentForm::closeForm in src/
Form/ DeleteComponentForm.php - Ajax callback - closes the form.
File
- src/
DialogHelperTrait.php, line 48
Class
- DialogHelperTrait
- Defines a dialog id helper trait.
Namespace
Drupal\layout_paragraphsCode
protected function closeDialogCommand(LayoutParagraphsLayout $layout) {
return new CloseDialogCommand($this
->dialogSelector($layout));
}