TermStorage::create

public TermStorage::create(array $values = array()) Parameters array $values: An array of values to set, keyed by property name. A value for the vocabulary ID ('vid') is required. Overrides EntityStorageBase::create File core/modules/taxonomy/src/TermStorage.php, line 69 Class TermStorage Defines a Controller class for taxonomy terms. Namespace Drupal\taxonomy Code public function create(array $values = array()) { // Save new terms with no parents by default. if (empty($values['pa

TermStorage::$parentsAll

Array of all loaded term ancestry keyed by ancestor term ID. Type: array File core/modules/taxonomy/src/TermStorage.php, line 25 Class TermStorage Defines a Controller class for taxonomy terms. Namespace Drupal\taxonomy Code protected $parentsAll = array();

TermStorage::$children

Array of child terms keyed by parent term ID. Type: array File core/modules/taxonomy/src/TermStorage.php, line 32 Class TermStorage Defines a Controller class for taxonomy terms. Namespace Drupal\taxonomy Code protected $children = array();

TermStorage::$parents

Array of loaded parents keyed by child term ID. Type: array File core/modules/taxonomy/src/TermStorage.php, line 18 Class TermStorage Defines a Controller class for taxonomy terms. Namespace Drupal\taxonomy Code protected $parents = array();

TermStorage

Defines a Controller class for taxonomy terms. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityStorageBase implements EntityHandlerInterface, EntityStorageInterfaceclass \Drupal\Core\Entity\ContentEntityStorageBase implements ContentEntityStorageInterface, DynamicallyFieldableEntityStorageInterfaceclass \Drupal\Core\Entity\Sql\SqlContentEntityStorage implements EntityBundleListenerInterface, Dynamical

TermInterface::setName

public TermInterface::setName($name) Sets the name of the term. Parameters int $name: The term's name. Return value $this File core/modules/taxonomy/src/TermInterface.php, line 65 Class TermInterface Provides an interface defining a taxonomy term entity. Namespace Drupal\taxonomy Code public function setName($name);

TermInterface::setFormat

public TermInterface::setFormat($format) Sets the text format name for the term's description. Parameters string $format: The term's description text format. Return value $this File core/modules/taxonomy/src/TermInterface.php, line 47 Class TermInterface Provides an interface defining a taxonomy term entity. Namespace Drupal\taxonomy Code public function setFormat($format);

TermInterface::setWeight

public TermInterface::setWeight($weight) Gets the weight of this term. Parameters int $weight: The term's weight. Return value $this File core/modules/taxonomy/src/TermInterface.php, line 83 Class TermInterface Provides an interface defining a taxonomy term entity. Namespace Drupal\taxonomy Code public function setWeight($weight);

TermInterface::getDescription

public TermInterface::getDescription() Gets the term's description. Return value string The term description. File core/modules/taxonomy/src/TermInterface.php, line 19 Class TermInterface Provides an interface defining a taxonomy term entity. Namespace Drupal\taxonomy Code public function getDescription();

TermInterface::getName

public TermInterface::getName() Gets the name of the term. Return value string The name of the term. File core/modules/taxonomy/src/TermInterface.php, line 55 Class TermInterface Provides an interface defining a taxonomy term entity. Namespace Drupal\taxonomy Code public function getName();