protected static function MarkdownStatesTrait::getElementParents in Markdown 3.0.x
Retrieves the ancestry of the extension in a form/render array.
Parameters
array $element: The element where the #parents array resides.
array $parents: Optional. Additional parents to add.
string $property: Optional. The property used to retrieve the array parents.
Return value
array The element's parents array.
2 calls to MarkdownStatesTrait::getElementParents()
- AtAutolinker::settingsForm in src/
Plugin/ Markdown/ Extension/ AtAutolinker.php - Returns the configuration form elements specific to this plugin.
- HashAutolinker::settingsForm in src/
Plugin/ Markdown/ Extension/ HashAutolinker.php - Returns the configuration form elements specific to this plugin.
File
- src/
Traits/ MarkdownStatesTrait.php, line 20
Class
Namespace
Drupal\markdown\TraitsCode
protected static function getElementParents(array $element, array $parents = [], string $property = '#array_parents') {
return array_merge($element[$property] ?? [], $parents);
}