public function NodeOrderManager::vocabularyIsOrderable in Node Order 8
Determines if a given vocabulary is orderable.
Parameters
string $vid: The vocabulary vid.
Return value
bool Returns TRUE if the given vocabulary is orderable.
Overrides NodeOrderManagerInterface::vocabularyIsOrderable
File
- src/
NodeOrderManager.php, line 148
Class
- NodeOrderManager
- Defines a service that creates & manages node ordering within taxonomy terms.
Namespace
Drupal\nodeorderCode
public function vocabularyIsOrderable($vid) {
$vocabularies = $this->configFactory
->get('nodeorder.settings')
->get('vocabularies');
return !empty($vocabularies[$vid]);
}