You are here

public function NodeOrderAccess::isVocabularyOrderable in Node Order 8

Vocabulary orderable.

Parameters

\Drupal\taxonomy\Entity\Term $taxonomy_term:

Return value

\Drupal\Core\Access\AccessResult Access result.

File

src/Access/NodeOrderAccess.php, line 69

Class

NodeOrderAccess

Namespace

Drupal\nodeorder\Access

Code

public function isVocabularyOrderable(Term $taxonomy_term) {
  $vocabulary_id = $taxonomy_term
    ->getVocabularyId();
  return $this->nodeOrderManager
    ->vocabularyIsOrderable($vocabulary_id) ? AccessResult::allowed() : AccessResult::forbidden();
}