Weight

Provides a form element for input of a weight. Weights are integers used to indicate ordering, with larger numbers later in the order. Properties: #delta: The range of possible weight values used. A delta of 10 would indicate possible weight values between -10 and 10. Usage example: $form['weight'] = array( '#type' => 'weight', '#title' => $this->t('Weight'), '#default_value' => $edit['weight'], '#delta' => 10, ); Plugin annotation @FormElement("weight") Hierarchy cl

watchdog_exception

watchdog_exception($type, Exception $exception, $message = NULL, $variables = array(), $severity = RfcLogLevel::ERROR, $link = NULL) Logs an exception. This is a wrapper logging function which automatically decodes an exception. Parameters $type: The category to which this message belongs. $exception: The exception that is going to be logged. $message: The message to store in the log. If empty, a text that contains all useful information about the passed-in exception is used. $variables: Array

VocabularyStorageInterface::getToplevelTids

public VocabularyStorageInterface::getToplevelTids($vids) Gets top-level term IDs of vocabularies. Parameters array $vids: Array of vocabulary IDs. Return value array Array of top-level term IDs. File core/modules/taxonomy/src/VocabularyStorageInterface.php, line 21 Class VocabularyStorageInterface Defines an interface for vocabulary entity storage classes. Namespace Drupal\taxonomy Code public function getToplevelTids($vids);

VocabularyStorageInterface

Defines an interface for vocabulary entity storage classes. Hierarchy interface \Drupal\Core\Entity\EntityStorageInterfaceinterface \Drupal\Core\Config\Entity\ConfigEntityStorageInterfaceinterface \Drupal\taxonomy\VocabularyStorageInterface File core/modules/taxonomy/src/VocabularyStorageInterface.php, line 10 Namespace Drupal\taxonomy Members Name Modifiers Type Description ConfigEntityStorageInterface::createFromStorageRecord public function Creates a configuration e

VocabularyStorage::resetCache

public VocabularyStorage::resetCache(array $ids = NULL) Resets the internal, static entity cache. Parameters $ids: (optional) If specified, the cache is reset for the entities with the given ids only. Overrides EntityStorageBase::resetCache File core/modules/taxonomy/src/VocabularyStorage.php, line 15 Class VocabularyStorage Defines a storage handler class for taxonomy vocabularies. Namespace Drupal\taxonomy Code public function resetCache(array $ids = NULL) { drupal_static_reset('t

VocabularyStorage::getToplevelTids

public VocabularyStorage::getToplevelTids($vids) Gets top-level term IDs of vocabularies. Parameters array $vids: Array of vocabulary IDs. Return value array Array of top-level term IDs. Overrides VocabularyStorageInterface::getToplevelTids File core/modules/taxonomy/src/VocabularyStorage.php, line 23 Class VocabularyStorage Defines a storage handler class for taxonomy vocabularies. Namespace Drupal\taxonomy Code public function getToplevelTids($vids) { return db_query('SELECT t.ti

VocabularyStorage

Defines a storage handler class for taxonomy vocabularies. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityStorageBase implements EntityHandlerInterface, EntityStorageInterfaceclass \Drupal\Core\Config\Entity\ConfigEntityStorage implements ConfigEntityStorageInterface, ImportableEntityStorageInterfaceclass \Drupal\taxonomy\VocabularyStorage implements VocabularyStorageInterface File core/modules

VocabularyResetForm::__construct

public VocabularyResetForm::__construct(TermStorageInterface $term_storage) Constructs a new VocabularyResetForm object. Parameters \Drupal\taxonomy\TermStorageInterface $term_storage: The term storage. File core/modules/taxonomy/src/Form/VocabularyResetForm.php, line 28 Class VocabularyResetForm Provides confirmation form for resetting a vocabulary to alphabetical order. Namespace Drupal\taxonomy\Form Code public function __construct(TermStorageInterface $term_storage) { $this->

VocabularyResetForm::submitForm

public VocabularyResetForm::submitForm(array &$form, FormStateInterface $form_state) This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state can be updated, this way the subsequently invoked handlers can retrieve a regular entity object to act on. Generally this method should not be overridden unle

VocabularyResetForm::getQuestion

public VocabularyResetForm::getQuestion() Returns the question to ask the user. Return value string The form question. The page title will be set to this value. Overrides ConfirmFormInterface::getQuestion File core/modules/taxonomy/src/Form/VocabularyResetForm.php, line 51 Class VocabularyResetForm Provides confirmation form for resetting a vocabulary to alphabetical order. Namespace Drupal\taxonomy\Form Code public function getQuestion() { return $this->t('Are you sure you want