By nicxvan on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
11.5.x
Introduced in version:
11.5.0
Issue links:
Description:
user_picture_enabled is now deprecated, there is no replacement, check the field definition directly.
Before
user_picture_enabled()
After
$field_definitions = \Drupal::service('entity_field.manager')->getFieldDefinitions('user', 'user');
isset($field_definitions['user_picture']);
Impacts:
Module developers
Themers