3

Entity query respects access by default. Add the ->accessCheck(FALSE) method to prevent access checking. Be careful, removing access checks may expose restricted data. It may be better to configure view permissions or whatever access system you're using to allow anonymous users to access content instead of removing the check.


1

After a bit of struggle and research, here is the approach taken - custom_module.install file - /** * Enable translation for workbench_reviewer field. * Implements hook_update_n. */ function hook_update_xxxx() { $entity_definition_update_manager = \Drupal::entityDefinitionUpdateManager(); $field_storage_definition_node = $...


Only top voted, non community-wiki answers of a minimum length are eligible