public function ImportForm::exists in Term CSV Export Import 8
Same name and namespace in other branches
- 8.3 src/Form/ImportForm.php \Drupal\term_csv_export_import\Form\ImportForm::exists()
- 8.2 src/Form/ImportForm.php \Drupal\term_csv_export_import\Form\ImportForm::exists()
Determines if the vocabulary already exists.
Parameters
string $vid: The vocabulary ID.
Return value
bool TRUE if the vocabulary exists, FALSE otherwise.
File
- src/
Form/ ImportForm.php, line 188
Class
- ImportForm
- Class ImportForm.
Namespace
Drupal\term_csv_export_import\FormCode
public function exists($vid) {
$action = $this->vocabularyStorage
->load($vid);
return !empty($action);
}