Commit 07306427 authored by Balint Pekker's avatar Balint Pekker Committed by Jakob P
Browse files

Issue #3298007 by japerry, Project Update Bot: Automated Drupal 10 compatibility fixes

parent 956c4b9e
Loading
Loading
Loading
Loading

composer.json

0 → 100644
+29 −0
Original line number Diff line number Diff line
{
    "name": "drupal/search_api_page",
    "description": "Create search pages using Search API indexes.",
    "type": "drupal-module",
    "homepage": "https://www.drupal.org/project/search_api_page",
    "authors": [
        {
            "name": "See contributors",
            "homepage": "https://www.drupal.org/node/1142202/committers"
        }
    ],
    "support": {
        "issues": "https://www.drupal.org/project/issues/search_api_page",
        "irc": "irc://irc.freenode.org/drupal-search-api",
        "source": "http://git.drupal.org/project/search_api_page.git"
    },
    "license": "GPL-2.0-or-later",
    "require": {
        "drupal/search_api": "^1.25"
    },
    "require-dev": {
        "drupal/facets": "2.0.x-dev"
    },
    "extra": {
        "branch-alias": {
            "dev-8.x-1.x": "1.x-dev"
        }
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ dependencies:
  - search_api:search_api
test_dependencies:
  - facets:facets
core_version_requirement: ^8.8 || ^9
core_version_requirement: ^9.2 || ^10
package: Search
type: module
configure: entity.search_api_page.collection
+2 −1
Original line number Diff line number Diff line
<?php

use Drupal\file\Entity\File;
/**
 * @file
 * Search API pages file.
@@ -118,7 +119,7 @@ function template_preprocess_search_api_page_result(&$variables) {

  $variables['snippet'] = ['#markup' => $item->getExcerpt()];
  $variables['title'] = $entity->label();
  if ($entity instanceof \Drupal\file\Entity\File) {
  if ($entity instanceof File) {
    $variables['url'] = $entity->createFileUrl();
  }
  else {
+4 −3
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ class BlockTest extends FunctionalTestBase {
  /**
   * {@inheritdoc}
   */
  public function setUp() {
  public function setUp(): void {
    parent::setUp();

    $this->drupalLogin($this->adminUser);
@@ -50,12 +50,13 @@ class BlockTest extends FunctionalTestBase {
      'id' => $id,
      'index' => $indexId,
    ];
    $this->drupalPostForm('admin/config/search/search-api-pages/add', $step1, 'Next');
    $this->drupalGet('admin/config/search/search-api-pages/add');
    $this->submitForm($step1, 'Next');

    $step2 = [
      'path' => $path,
    ];
    $this->drupalPostForm(NULL, $step2, 'Save');
    $this->submitForm($step2, 'Save');
  }

  /**
+2 −2
Original line number Diff line number Diff line
@@ -20,14 +20,14 @@ class FacetsIntegrationTest extends FunctionalTestBase {
  /**
   * {@inheritdoc}
   */
  public static $modules = [
  protected static $modules = [
    'facets',
  ];

  /**
   * {@inheritdoc}
   */
  public function setUp() {
  public function setUp(): void {
    parent::setUp();

    $this->adminUser = $this->drupalCreateUser([
Loading