GetDKAN/dkan

View on GitHub
modules/metastore/modules/metastore_search/src/Plugin/search_api/DkanDatasetFilterProcessorInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace Drupal\metastore_search\Plugin\search_api;

use Drupal\search_api\Processor\ProcessorInterface;

/**
 * Dataset filter processor interface.
 */
interface DkanDatasetFilterProcessorInterface extends ProcessorInterface {

  /**
   * Determine whether the dataset belonging to the given ID should be included.
   *
   * @param string $dataset_id
   *   DKAN dataset ID.
   *
   * @return bool
   *   Whether the dataset should be included.
   */
  public function isValid(string $dataset_id): bool;

}