You are here

public function SolrFieldTypeListBuilder::getDefaultOperations in Search API Multilingual Solr Search 8

@inheritdoc

Overrides ConfigEntityListBuilder::getDefaultOperations

File

src/Controller/SolrFieldTypeListBuilder.php, line 170

Class

SolrFieldTypeListBuilder
Provides a listing of SolrFieldType.

Namespace

Drupal\search_api_solr_multilingual\Controller

Code

public function getDefaultOperations(EntityInterface $solr_field_type) {

  /** @var \Drupal\search_api_solr_multilingual\SolrFieldTypeInterface $solr_field_type */
  $operations = parent::getDefaultOperations($solr_field_type);
  if ($solr_field_type
    ->access('view') && $solr_field_type
    ->hasLinkTemplate('export-form')) {
    $operations['export'] = array(
      'title' => $this
        ->t('Export'),
      'weight' => 10,
      'url' => $solr_field_type
        ->toUrl('export-form'),
    );
  }
  return $operations;
}