function facets_pretty_paths_facet_edit_form_submit in Facets Pretty Paths 8
Custom submit handler which saves the selected coder for a given facet.
1 string reference to 'facets_pretty_paths_facet_edit_form_submit'
File
- ./
facets_pretty_paths.module, line 50 - Facets Pretty Paths module file.
Code
function facets_pretty_paths_facet_edit_form_submit(&$form, FormStateInterface $form_state) {
$coder = $form_state
->getValue([
'facet_settings',
'facets_pretty_paths_coder',
]);
$facet = \Drupal::routeMatch()
->getParameter('facets_facet');
$facet
->setThirdPartySetting('facets_pretty_paths', 'coder', $coder);
$facet
->save();
}