Skip to content

Instantly share code, notes, and snippets.

@diqidoq
Last active November 30, 2017 07:15
Show Gist options
  • Save diqidoq/4a56acdeca6b1ec22b69898d6fff924b to your computer and use it in GitHub Desktop.
Save diqidoq/4a56acdeca6b1ec22b69898d6fff924b to your computer and use it in GitHub Desktop.
Occurrence of author_picture, user_picture and respective settings in Drupal 8.5.x-dev
/drupal (8.5.x=) $ grep -rnw -e "author_picture"
core/themes/bartik/templates/node.html.twig:23: * - author_picture: The node author user entity, rendered using the "compact"
core/themes/bartik/templates/node.html.twig:92: {{ author_picture }}
core/themes/stable/templates/content/node.html.twig:23: * - author_picture: The node author user entity, rendered using the "compact"
core/themes/stable/templates/content/node.html.twig:85: {{ author_picture }}
core/themes/classy/templates/content/node.html.twig:23: * - author_picture: The node author user entity, rendered using the "compact"
core/themes/classy/templates/content/node.html.twig:96: {{ author_picture }}
core/modules/node/templates/node.html.twig:23: * - author_picture: The node author user entity, rendered using the "compact"
core/modules/node/templates/node.html.twig:87: {{ author_picture }}
core/modules/node/node.module:639: $variables['author_picture'] = user_view($node->getOwner(), 'compact');
core/modules/statistics/tests/themes/statistics_test_attached/node.html.twig:13: {{ author_picture }}
drupal (8.5.x=) $ grep -rnw -e "user_picture"
core/themes/bartik/templates/comment.html.twig:24: * - user_picture: The comment author's profile picture.
core/themes/bartik/templates/comment.html.twig:86: {{ user_picture }}
core/themes/stable/templates/content/comment.html.twig:24: * - user_picture: The comment author's profile picture.
core/themes/stable/templates/content/comment.html.twig:77: {{ user_picture }}
core/themes/stable/templates/user/user.html.twig:12: * such as 'user_picture' are available as 'content.user_picture'.
core/themes/classy/templates/content/comment.html.twig:24: * - user_picture: The comment author's profile picture.
core/themes/classy/templates/content/comment.html.twig:88: {{ user_picture }}
core/themes/classy/templates/user/user.html.twig:12: * such as 'user_picture' are available as 'content.user_picture'.
core/modules/image/src/Tests/Views/RelationshipUserImageDataTest.php:39: 'field_name' => 'user_picture',
core/modules/image/src/Tests/Views/RelationshipUserImageDataTest.php:46: 'field_name' => 'user_picture',
core/modules/image/src/Tests/Views/RelationshipUserImageDataTest.php:74: $account->user_picture->target_id = 2;
core/modules/image/tests/modules/image_test_views/test_views/views.view.test_image_user_image_data.yml:73: admin_label: 'image from user_picture'
core/modules/migrate/src/Plugin/migrate/destination/PerComponentEntityDisplay.php:24: * field_name: user_picture
core/modules/migrate/src/Plugin/migrate/destination/PerComponentEntityDisplay.php:43: * This will add the "user_picture" image field to the "default" view mode of
core/modules/comment/templates/comment.html.twig:24: * - user_picture: The comment author's profile picture.
core/modules/comment/templates/comment.html.twig:79: {{ user_picture }}
core/modules/comment/comment.module:651: $variables['user_picture'] = user_view($account, 'compact');
core/modules/comment/comment.module:654: $variables['user_picture'] = [];
core/modules/system/tests/src/Functional/Update/RecalculatedDependencyTest.php:35: $data = \Drupal::config('field.field.user.user.user_picture')->get();
core/modules/system/tests/src/Functional/Update/RecalculatedDependencyTest.php:64: $data = \Drupal::config('field.field.user.user.user_picture')->get();
core/modules/user/templates/user.html.twig:12: * such as 'user_picture' are available as 'content.user_picture'.
core/modules/user/migrations/user_picture_entity_display.yml:12: name: user_picture
core/modules/user/migrations/user_picture_field_instance.yml:11: name: user_picture
core/modules/user/migrations/user_picture_entity_form_display.yml:12: name: user_picture
core/modules/user/migrations/user_picture_field.yml:13: name: user_picture
core/modules/user/migrations/d7_user.yml:37: user_picture:
core/modules/user/migrations/d6_user.yml:38: user_picture:
core/modules/user/user.module:153: return isset($field_definitions['user_picture']);
core/modules/user/user.module:405: * This function adds a default alt tag to the user_picture field to maintain
core/modules/user/user.module:409: if (user_picture_enabled() && !empty($build['user_picture'])) {
core/modules/user/user.module:410: foreach (Element::children($build['user_picture']) as $key) {
core/modules/user/user.module:411: $item = $build['user_picture'][$key]['#item'];
core/modules/user/src/Tests/UserPictureTest.php:102: $image_style_id = $this->config('core.entity_view_display.user.user.compact')->get('content.user_picture.settings.image_style');
core/modules/user/src/Tests/UserPictureTest.php:146: return File::load($account->user_picture->target_id);
core/modules/user/src/Tests/UserRegistrationTest.php:170: 'field_name' => 'user_picture',
core/modules/user/src/Tests/UserRegistrationTest.php:177: 'field_name' => 'user_picture',
core/modules/user/src/Tests/UserRegistrationTest.php:189: $form_display->setComponent('user_picture', [
core/modules/user/tests/themes/user_test_theme/user.html.twig:12: * such as 'user_picture' are available as 'content.user_picture'.
core/modules/user/tests/src/Kernel/Migrate/MigrateUserPictureEntityDisplayTest.php:37: $component = EntityViewDisplay::load('user.user.default')->getComponent('user_picture');
core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserTest.php:139: $file = File::load($user->user_picture->target_id);
core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserTest.php:144: $this->assertFalse($user->user_picture->target_id, sprintf('User %s does not have a picture', $user->id()));
core/modules/user/tests/src/Kernel/Migrate/MigrateUserPictureFieldInstanceTest.php:34: $field = FieldConfig::load('user.user.user_picture');
core/modules/user/tests/src/Kernel/Migrate/MigrateUserPictureFieldInstanceTest.php:38: $this->assertIdentical('user_picture', $field->getName());
core/modules/user/tests/src/Kernel/Migrate/MigrateUserPictureEntityFormDisplayTest.php:9: * Tests migration of the user_picture field's entity form display settings.
core/modules/user/tests/src/Kernel/Migrate/MigrateUserPictureEntityFormDisplayTest.php:33: $component = EntityFormDisplay::load('user.user.default')->getComponent('user_picture');
core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserTest.php:137: $this->assertSame($has_picture, !$user->user_picture->isEmpty());
core/modules/user/tests/src/Kernel/Migrate/MigrateUserPictureFieldTest.php:31: $field_storage = FieldStorageConfig::load('user.user_picture');
core/modules/user/tests/src/Kernel/Migrate/MigrateUserPictureFieldTest.php:33: $this->assertIdentical('user.user_picture', $field_storage->id());
core/profiles/standard/config/install/field.storage.user.user_picture.yml:8:id: user.user_picture
core/profiles/standard/config/install/field.storage.user.user_picture.yml:9:field_name: user_picture
core/profiles/standard/config/install/field.field.user.user.user_picture.yml:5: - field.storage.user.user_picture
core/profiles/standard/config/install/field.field.user.user.user_picture.yml:9:id: user.user.user_picture
core/profiles/standard/config/install/field.field.user.user.user_picture.yml:10:field_name: user_picture
core/profiles/standard/config/install/core.entity_form_display.user.user.default.yml:5: - field.field.user.user.user_picture
core/profiles/standard/config/install/core.entity_form_display.user.user.default.yml:27: user_picture:
core/profiles/standard/config/install/core.entity_view_display.user.user.default.yml:5: - field.field.user.user.user_picture
core/profiles/standard/config/install/core.entity_view_display.user.user.default.yml:18: user_picture:
core/profiles/standard/config/install/core.entity_view_display.user.user.compact.yml:6: - field.field.user.user.user_picture
core/profiles/standard/config/install/core.entity_view_display.user.user.compact.yml:16: user_picture:
core/lib/Drupal/Core/Entity/entity.api.php:1651: // Hide the 'user_picture' field from the register form.
core/lib/Drupal/Core/Entity/entity.api.php:1653: $form_display->setComponent('user_picture', [
drupal (8.5.x=) $ grep -rnw -e "User pictures in"
core/config/schema/core.data_types.schema.yml:178: label: 'User pictures in comments'
core/config/schema/core.data_types.schema.yml:193: label: 'User pictures in posts'
core/modules/system/src/Form/ThemeSettingsForm.php:148: 'node_user_picture' => t('User pictures in posts'),
core/modules/system/src/Form/ThemeSettingsForm.php:149: 'comment_user_picture' => t('User pictures in comments'),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment