protected function DialogHelperTrait::dialogSelector in Layout Paragraphs 2.0.x
Generates a dialog selector for a given layout.
Parameters
\Drupal\layout_paragraphs\LayoutParagraphsLayout $layout: The layout paragraphs layout object.
Return value
string The dom selector for the dialog.
4 calls to DialogHelperTrait::dialogSelector()
- ComponentFormBase::ajaxCloseForm in src/
Form/ ComponentFormBase.php - Closes the form with ajax.
- ComponentFormController::openForm in src/
Controller/ ComponentFormController.php - Returns the form, with ajax if appropriate.
- DeleteComponentForm::deleteComponent in src/
Form/ DeleteComponentForm.php - Ajax callback - deletes component and closes the form.
- DialogHelperTrait::closeDialogCommand in src/
DialogHelperTrait.php - Returns a CloseDialogComand with the correct selector.
File
- src/
DialogHelperTrait.php, line 35
Class
- DialogHelperTrait
- Defines a dialog id helper trait.
Namespace
Drupal\layout_paragraphsCode
protected function dialogSelector(LayoutParagraphsLayout $layout) {
return '#' . $this
->dialogId($layout);
}