Skip to content
Snippets Groups Projects

Issue #2707689: NodeForm::actions() checks for delete access on new entities

2 files
+ 43
15
Compare changes
  • Side-by-side
  • Inline
Files
2
  • 65aaec60
    Issue #3249240 by alexpott, andypost, Wim Leers: HTMLRestrictionsUtilities::... · 65aaec60
    Lee Rowlands authored
    Issue #3249240 by alexpott, andypost, Wim Leers: HTMLRestrictionsUtilities:: providedElementsAttributes() causes deprecations on PHP 8.1
@@ -326,10 +326,7 @@ public function getProvidedElements(array $plugin_ids = [], EditorInterface $edi
if (is_array($attribute_value)) {
$attribute_value = array_keys($attribute_value);
}
$element_already_allows_all_values = isset($elements[$wildcard_tag][$attribute_name]) && $elements[$wildcard_tag][$attribute_name] === TRUE;
if (!$element_already_allows_all_values) {
HTMLRestrictionsUtilities::providedElementsAttributes($elements, $wildcard_tag, $attribute_name, $attribute_value);
}
HTMLRestrictionsUtilities::addAllowedAttributeToElements($elements, $wildcard_tag, $attribute_name, $attribute_value);
}
}
}
Loading