Taxonomy
Statamic\API\Taxonomy
Get all taxonomies.
PHP
Taxonomy::all(); // Returns \Illuminate\Support\Collection
Get the handles of all taxonomies.
PHP
Taxonomy::handles(); // Returns an array of strings
Get a taxonomy by handle.
PHP
Taxonomy::whereHandle($handle); // Returns TaxonomyFolder
Check if a taxonomy exists.
PHP
Taxonomy::handleExists($handle); // Returns a boolean
Import using:
PHP
use Statamic\API\Taxonomy