public function NodeOrderAccess::adminOrder in Node Order 8
Administer order.
Parameters
\Drupal\taxonomy\Entity\Term $taxonomy_term:
Return value
\Drupal\Core\Access\AccessResult Access result.
1 string reference to 'NodeOrderAccess::adminOrder'
File
- src/
Access/ NodeOrderAccess.php, line 85
Class
Namespace
Drupal\nodeorder\AccessCode
public function adminOrder(Term $taxonomy_term) {
return $this
->weightExists()
->isAllowed() && $this
->isVocabularyOrderable($taxonomy_term)
->isAllowed() ? AccessResult::allowed() : AccessResult::forbidden();
}