function filter_form_access_denied
Same name and namespace in other branches
- 7.x modules/filter/filter.module \filter_form_access_denied()
Render API callback: Hides the field value of 'text_format' elements.
Deprecated
in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\filter\Element\TextFormat::accessDeniedCallback() instead.
See also
https://www.drupal.org/node/2966725
1 call to filter_form_access_denied()
- FilterLegacyTest::testFilterFormAccessDenied in core/
modules/ filter/ tests/ src/ Kernel/ FilterLegacyTest.php - Tests filter_form_access_denied() deprecation.
File
-
core/
modules/ filter/ filter.module, line 315
Code
function filter_form_access_denied($element) {
@trigger_error('filter_form_access_denied() is deprecated in Drupal 8.8.0 and will be removed before Drupal 9.0.0. Use \\Drupal\\filter\\Element\\TextFormat::accessDeniedCallback() instead. See https://www.drupal.org/node/2966725', E_USER_DEPRECATED);
return TextFormat::accessDeniedCallback($element);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.