Verified Commit 900d64b9 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3456133 by narendraR, VinmayiSwamy: Add validation constraints to search.page.*

parent 902eab09
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -87,6 +87,8 @@ search.settings:
search.page.*:
  type: config_entity
  label: 'Search page'
  constraints:
    FullyValidatable: ~
  mapping:
    id:
      type: machine_name
@@ -95,8 +97,10 @@ search.page.*:
      type: required_label
      label: 'Label'
    path:
      type: string
      type: path
      label: 'Search page path'
      constraints:
        NotBlank: []
    weight:
      type: weight
      label: 'Weight'
+6 −0
Original line number Diff line number Diff line
@@ -34,6 +34,12 @@ process:
      source:
        - module
        - 'constants/suffix'
  label:
    -
      plugin: concat
      source:
        - module
        - 'constants/suffix'
  plugin:
    -
      plugin: concat
+1 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ source:
process:
  module: module
  id: 'constants/id'
  label: 'constants/id'
  path: 'constants/path'
  plugin: 'constants/plugin'
  configuration:
+1 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ protected function setUp(): void {
    $this->entity = SearchPage::create([
      'id' => 'test',
      'label' => 'Test',
      'path' => 'test',
      'plugin' => 'user_search',
    ]);
    $this->entity->save();
+2 −0
Original line number Diff line number Diff line
@@ -172,6 +172,8 @@ protected function doSearchPageUpdate() {
    $name = 'search.page.apple';
    $entity = SearchPage::create([
      'id' => 'apple',
      'label' => 'Apple search',
      'path' => 'apple',
      'plugin' => 'search_extra_type_search',
    ]);
    $entity->save();