public static function ParagraphsFeatures::getWrapperId in Paragraphs Features 8
Same name and namespace in other branches
- 2.x src/ParagraphsFeatures.php \Drupal\paragraphs_features\ParagraphsFeatures::getWrapperId()
Getting paragraphs widget wrapper ID.
Logic is copied from paragraphs module.
Parameters
array $parents: List of parents for widget.
string $field_name: Widget field name.
Return value
string Returns widget wrapper ID.
1 call to ParagraphsFeatures::getWrapperId()
File
- src/
ParagraphsFeatures.php, line 43
Class
- ParagraphsFeatures
- Paragraphs features class.
Namespace
Drupal\paragraphs_featuresCode
public static function getWrapperId(array $parents, $field_name) {
return Html::getId(implode('-', array_merge($parents, [
$field_name,
])) . '-add-more-wrapper');
}