summaryrefslogtreecommitdiffstats
path: root/core/profiles/standard/standard.install
diff options
context:
space:
mode:
Diffstat (limited to 'core/profiles/standard/standard.install')
-rw-r--r--core/profiles/standard/standard.install5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/profiles/standard/standard.install b/core/profiles/standard/standard.install
index b9d1c02..f588cd3 100644
--- a/core/profiles/standard/standard.install
+++ b/core/profiles/standard/standard.install
@@ -20,6 +20,11 @@ function standard_install() {
// Add comment field to article node type.
\Drupal::service('comment.manager')->addDefaultField('node', 'article', 'comment', CommentItemInterface::OPEN);
+ // Hide the comment field in the rss view mode.
+ entity_get_display('node', 'article', 'rss')
+ ->removeComponent('comment')
+ ->save();
+
// Allow visitor account creation with administrative approval.
$user_settings = \Drupal::config('user.settings');
$user_settings->set('register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL)->save();