You are here

protected function SitemapSettingsForm::getVocabularies in Sitemap 8

Helper function to get all vocabularies.

Return value

\Drupal\Core\Entity\EntityInterface[]|\Drupal\taxonomy\Entity\Vocabulary[] The list of vocabularies.

1 call to SitemapSettingsForm::getVocabularies()
SitemapSettingsForm::buildForm in src/Form/SitemapSettingsForm.php
Form constructor.

File

src/Form/SitemapSettingsForm.php, line 424

Class

SitemapSettingsForm
Provides a configuration form for sitemap.

Namespace

Drupal\sitemap\Form

Code

protected function getVocabularies() {
  return Vocabulary::loadMultiple();
}