Commit 33ee4cf1 authored by alexpott's avatar alexpott

Issue #2299253 by alimac: Remove language_access_language_edit_or_delete function.

parent b5d2e08a
......@@ -89,16 +89,6 @@ function language_help($route_name, RouteMatchInterface $route_match) {
}
}
/**
* Editing or deleting locked languages should not be possible.
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* Use \Drupal\language\LanguageAccessController.
*/
function language_access_language_edit_or_delete($language) {
return !$language->locked && \Drupal::currentUser()->hasPermission('administer languages');
}
/**
* Implements hook_permission().
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment