Skip to content
This repository was archived by the owner on Nov 16, 2021. It is now read-only.

Commit 9afee52

Browse files
danepowellphenaproxima
authored andcommitted
Fix stale configuration of frontpage view created during installation (#666)
1 parent 60de566 commit 9afee52

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lightning.profile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ function lightning_alter_frontpage_view() {
139139
->set('tag', 'default')
140140
->set('base_table', 'node_field_data')
141141
->set('base_field', 'nid')
142-
->set('core', '8.x')
143142
->set('display.default', [
144143
'display_options' => [
145144
'access' => [
@@ -162,7 +161,7 @@ function lightning_alter_frontpage_view() {
162161
'admin_label' => '',
163162
'empty' => TRUE,
164163
'tokenize' => TRUE,
165-
'content' => '<p>Welcome to [site:name]. No front page content has been created yet.</p><p>Would you like to <a href="' . drupal_get_path('profile', 'lightning') . '/README.md">view the README</a>?</p>',
164+
'content' => '<p>Welcome to [site:name]. No front page content has been created yet.</p><p>Would you like to <a href="/' . drupal_get_path('profile', 'lightning') . '/README.md">view the README</a>?</p>',
166165
'label' => '',
167166
'plugin_id' => 'text_custom',
168167
],
@@ -219,6 +218,8 @@ function lightning_alter_frontpage_view() {
219218
],
220219
'required' => FALSE,
221220
'use_operator' => FALSE,
221+
'operator_limit_selection' => FALSE,
222+
'operator_list' => [],
222223
],
223224
'exposed' => FALSE,
224225
'field' => 'promote',
@@ -249,6 +250,8 @@ function lightning_alter_frontpage_view() {
249250
'status' => [
250251
'expose' => [
251252
'operator' => '',
253+
'operator_limit_selection' => FALSE,
254+
'operator_list' => [],
252255
],
253256
'field' => 'status',
254257
'group' => 1,
@@ -286,6 +289,8 @@ function lightning_alter_frontpage_view() {
286289
'authenticated' => 'authenticated',
287290
],
288291
'reduce' => FALSE,
292+
'operator_limit_selection' => FALSE,
293+
'operator_list' => [],
289294
],
290295
'is_grouped' => FALSE,
291296
'group_info' => [

0 commit comments

Comments
 (0)