diff --git a/core/modules/system/system.install b/core/modules/system/system.install index ff8702c..246e056 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -2206,6 +2206,7 @@ function system_update_8054() { ), 'user' => array( 'full' => 'User account', + 'compact' => 'Compact', ), 'taxonomy_term' => array( 'full' => 'Taxonomy term page', @@ -2217,7 +2218,7 @@ function system_update_8054() { foreach ($entity_view_modes as $entity_type => $view_modes) { foreach ($view_modes as $key => $name) { - $custom_settings = ($key == 'teaser'); + $custom_settings = in_array($key, array('teaser', 'compact')); config("view_mode.$entity_type.$key") ->set('id', "$entity_type.$key") ->set('label', $name) diff --git a/core/modules/user/config/view_mode.user.compact.yml b/core/modules/user/config/view_mode.user.compact.yml new file mode 100644 index 0000000..5f85374 --- /dev/null +++ b/core/modules/user/config/view_mode.user.compact.yml @@ -0,0 +1,5 @@ +id: user.compact +label: Compact +custom_settings: '1' +targetEntityType: user +locked: '1'