Update AdvancedSearchBlock.php

Change this to have Context Filter option appear in Advanced Search Block Config
This commit is contained in:
Kyle Huynh 2023-02-24 15:10:53 -05:00 committed by GitHub
parent 3fdb8408ab
commit f8effedcd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -330,7 +330,7 @@ class AdvancedSearchBlock extends BlockBase implements ContainerFactoryPluginInt
} }
} }
} }
if (count($options) > 1) { if (count($options) > 0) {
$form[self::SETTING_CONTEXTUAL_FILTER] = [ $form[self::SETTING_CONTEXTUAL_FILTER] = [
'#type' => 'select', '#type' => 'select',
'#title' => $this->t('Context Filter'), '#title' => $this->t('Context Filter'),