Run phpcs and phpcbf
This commit is contained in:
parent
9557ca17d5
commit
0940670323
13 changed files with 149 additions and 152 deletions
|
|
@ -81,8 +81,8 @@ function advanced_search_form_block_form_alter(&$form, FormStateInterface $form_
|
|||
$condition_id = 'node_has_term';
|
||||
|
||||
/** @var \Drupal\Core\Condition\ConditionInterface $condition */
|
||||
if (array_key_exists($condition_id,$visibility)) {
|
||||
$condition = $manager->createInstance($condition_id, isset($visibility[$condition_id]) ? $visibility[$condition_id] : []);
|
||||
if (array_key_exists($condition_id, $visibility)) {
|
||||
$condition = $manager->createInstance($condition_id, $visibility[$condition_id] ?? []);
|
||||
$form_state->set(['conditions', $condition_id], $condition);
|
||||
$condition_form = $condition->buildConfigurationForm([], $form_state);
|
||||
$condition_form['#type'] = 'details';
|
||||
|
|
@ -120,7 +120,7 @@ function advanced_search_preprocess_views_view(&$variables) {
|
|||
if (in_array([$view->id(), $view->current_display], $views)) {
|
||||
// Toggle between 'list' and 'grid' display depending on url parameter.
|
||||
$config = \Drupal::config(SettingsForm::CONFIG_NAME);
|
||||
|
||||
|
||||
$format = \Drupal::request()->query->get('display') ?? $config->get(SettingsForm::DISPLAY_DEFAULT);
|
||||
$variables['attributes']['class'][] = "view-{$format}";
|
||||
$view->element['#attached']['library'][] = 'advanced_search/advanced.search.pager';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue