private function LayoutParagraphsWidget::entityFormHtmlId in Layout Paragraphs 1.0.x
Generates an ID for the entity form dialog container.
Parameters
array $field_state: The field state with array_parents.
Return value
string The HTML id.
6 calls to LayoutParagraphsWidget::entityFormHtmlId()
- LayoutParagraphsWidget::closeDialogAjax in src/
Plugin/ Field/ FieldWidget/ LayoutParagraphsWidget.php - Form submit handler - cancels item removal and closes confirmation form.
- LayoutParagraphsWidget::editItemAjax in src/
Plugin/ Field/ FieldWidget/ LayoutParagraphsWidget.php - Ajax callback to return the entire ERL element.
- LayoutParagraphsWidget::elementAjax in src/
Plugin/ Field/ FieldWidget/ LayoutParagraphsWidget.php - Ajax callback to return the entire ERL element.
- LayoutParagraphsWidget::removeItemAjax in src/
Plugin/ Field/ FieldWidget/ LayoutParagraphsWidget.php - Ajax callback to remove an item - launches confirmation dialog.
- LayoutParagraphsWidget::removeItemConfirmAjax in src/
Plugin/ Field/ FieldWidget/ LayoutParagraphsWidget.php - Ajax callback to remove an item - removes item from DOM.
File
- src/
Plugin/ Field/ FieldWidget/ LayoutParagraphsWidget.php, line 2118
Class
- LayoutParagraphsWidget
- Entity Reference with Layout field widget.
Namespace
Drupal\layout_paragraphs\Plugin\Field\FieldWidgetCode
private function entityFormHtmlId(array $field_state) {
return trim(Html::getId(implode('-', $field_state['array_parents']) . '-entity-form'), '-');
}