function taxonomy_term_create_access

Access callback for creating a new taxonomy term.

Parameters

\Drupal\taxonomy\Plugin\Core\Entity\Vocabulary $vocabulary: The vocabulary entity that represents the term bundle.

Return value

bool TRUE if access is allowed, FALSE if not.

1 string reference to 'taxonomy_term_create_access'
taxonomy_menu in drupal/core/modules/taxonomy/taxonomy.module
Implements hook_menu().

File

drupal/core/modules/taxonomy/taxonomy.module, line 353
Enables the organization of content into categories.

Code

function taxonomy_term_create_access(Vocabulary $vocabulary) {
  return entity_page_create_access('taxonomy_term', $vocabulary
    ->id());
}