Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YALB-597: Enable linkit for homepage setting #341

Merged
merged 1 commit into from
Jul 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,15 @@ public function buildForm(array $form, FormStateInterface $form_state) {
];

$form['site_page_front'] = [
'#type' => 'textfield',
'#description' => $this->t("Specify a relative URL to display as the front page."),
'#type' => 'linkit',
'#title' => $this->t('Front page'),
'#description' => $this->t("Specify a relative URL to display as the front page. Typically this points to a page in Drupal and is referenced by a node id. Use this autocomplete field to select the correct node."),
'#autocomplete_route_name' => 'linkit.autocomplete',
'#default_value' => $siteConfig->get('page')['front'],
'#required' => TRUE,
'#autocomplete_route_parameters' => [
'linkit_profile_id' => 'default',
],
];

$form['site_page_posts'] = [
Expand Down