public function VocabularyForm::save in Taxonomy Breadcrumb 8
Form submission handler for the 'save' action.
Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
int Either SAVED_NEW or SAVED_UPDATED, depending on the operation performed.
Overrides VocabularyForm::save
File
- src/
VocabularyForm.php, line 64
Class
- VocabularyForm
- Class VocabularyListBuilder.
Namespace
Drupal\taxonomy_breadcrumbCode
public function save(array $form, FormStateInterface $form_state) {
$vocabulary = $this->entity;
$vocabulary
->setThirdPartySetting('taxonomy_breadcrumb', 'taxonomy_breadcrumb_path', $form_state
->getValue('taxonomy_breadcrumb_path'));
parent::save($form, $form_state);
}