function content_translation_translate_access
Same name and namespace in other branches
- 11.x core/modules/content_translation/content_translation.module \content_translation_translate_access()
- 10 core/modules/content_translation/content_translation.module \content_translation_translate_access()
- 9 core/modules/content_translation/content_translation.module \content_translation_translate_access()
- 8.9.x core/modules/content_translation/content_translation.module \content_translation_translate_access()
Access callback for the translation overview page.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity whose translation overview should be displayed.
Return value
\Drupal\Core\Access\AccessResultInterface The access result.
Deprecated
in drupal:11.4.0 and is removed from drupal:13.0.0. Use the access() method of the content_translation.manager service instead.
See also
https://www.drupal.org/node/3567484
File
-
core/
modules/ content_translation/ content_translation.module, line 45
Code
function content_translation_translate_access(EntityInterface $entity) {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use the access() method of the content_translation.manager service instead. See https://www.drupal.org/node/3567484', E_USER_DEPRECATED);
return \Drupal::service('content_translation.manager')->access($entity);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.