You are here

public function SearchApiFederatedSolrCanonicalUrl::propertyInfo in Search API Federated Solr 7.3

Same name and namespace in other branches
  1. 7 src/SearchApiFederatedSolrCanonicalUrl.php \SearchApiFederatedSolrCanonicalUrl::propertyInfo()
  2. 7.2 src/SearchApiFederatedSolrCanonicalUrl.php \SearchApiFederatedSolrCanonicalUrl::propertyInfo()

Implements SearchApiAlterCallbackInterface::propertyInfo().

Overrides SearchApiAbstractAlterCallback::propertyInfo

File

src/SearchApiFederatedSolrCanonicalUrl.php, line 23

Class

SearchApiFederatedSolrCanonicalUrl
Class SearchApiFederatedSolrCanonicalUrl Provides a Search API index data alteration that indicates the preferred URL content is available on to each indexed item.

Code

public function propertyInfo() {
  return [
    'canonical_url' => [
      'label' => t('Canonical URL'),
      'description' => t('Preferred URL for this content'),
      'type' => 'uri',
      'cardinality' => -1,
    ],
  ];
}