You are here

protected function ConfigIdEscapeTrait::getEscapedConfigId in Search API sorts 8

Escape a config id which can be used to save as a config entity.

7 calls to ConfigIdEscapeTrait::getEscapedConfigId()
AdminController::displayListing in src/Controller/AdminController.php
Overview of search api displays to choose to manage sort fields for.
ManageSortFieldsForm::buildForm in src/Form/ManageSortFieldsForm.php
Form constructor.
ManageSortFieldsForm::fillSearchApiSortsFieldsValues in src/Form/ManageSortFieldsForm.php
Fills the array build by buildDefaultFieldValues().
ManageSortFieldsForm::submitForm in src/Form/ManageSortFieldsForm.php
Form submission handler.
SearchApiSortsBlock::build in src/Plugin/Block/SearchApiSortsBlock.php
Builds and returns the renderable array for this block plugin.

... See full list

File

src/ConfigIdEscapeTrait.php, line 18

Class

ConfigIdEscapeTrait
Wrapper methods for \Drupal\search_api_sorts\SearchApiSortsField.

Namespace

Drupal\search_api_sorts

Code

protected function getEscapedConfigId($original_config_id) {
  return str_replace(':', '---', $original_config_id);
}