setTaxonomy() public méthode

public setTaxonomy ( Taxonomy $taxonomy )
$taxonomy Bolt\Storage\Collection\Taxonomy
Exemple #1
0
 /**
  * Set valid POST taxonomies.
  *
  * @param Content    $content
  * @param array|null $formValues
  */
 private function setPostedTaxonomies(Content $content, $formValues)
 {
     if (!isset($formValues['taxonomy'])) {
         return;
     }
     $content->setTaxonomy($formValues['taxonomy']);
 }