protected function SolrFieldType::urlRouteParameters in Apache Solr Multilingual 8
Gets an array of placeholders for this entity.
Individual entity classes may override this method to add additional placeholders if desired. If so, they should be sure to replicate the property caching logic.
Parameters
string $rel: The link relationship type, for example: canonical or edit-form.
Return value
array An array of URI placeholders.
Overrides EntityBase::urlRouteParameters
File
- src/
Entity/ SolrFieldType.php, line 112 - Contains Drupal\apachesolr_multilingual\Entity\SolrFieldType.
Class
- SolrFieldType
- Defines the SolrFieldType entity.
Namespace
Drupal\apachesolr_multilingual\EntityCode
protected function urlRouteParameters($rel) {
$uri_route_parameters = parent::urlRouteParameters($rel);
$uri_route_parameters['search_api_server'] = \Drupal::routeMatch()
->getRawParameter('search_api_server');
return $uri_route_parameters;
}