Tripal
|
Public Member Functions | |
createRecord () | |
destroy () | |
isValid () | |
recordExists () | |
Defines an interface for tripal collection plugins.
Drupal\tripal\TripalVocabTerms\Interfaces\TripalCollectionPluginInterface::createRecord | ( | ) |
Creates the records needed for this collection.
This must only be called once on this new collection instance that has just been created by its collection plugin manager.
Implemented in Drupal\tripal_chado\Plugin\TripalVocabulary\ChadoVocabulary, Drupal\tripal_chado\Plugin\TripalIdSpace\ChadoIdSpace, Drupal\tripal\Plugin\TripalVocabulary\TripalDefaultVocabulary, and Drupal\tripal\Plugin\TripalIdSpace\TripalDefaultIdSpace.
Drupal\tripal\TripalVocabTerms\Interfaces\TripalCollectionPluginInterface::destroy | ( | ) |
Destroys this collection.
This must only be called once when on this existing collection that is being removed from its collection plugin manager.
Implemented in Drupal\tripal_chado\Plugin\TripalVocabulary\ChadoVocabulary, Drupal\tripal_chado\Plugin\TripalIdSpace\ChadoIdSpace, Drupal\tripal\Plugin\TripalVocabulary\TripalDefaultVocabulary, and Drupal\tripal\Plugin\TripalIdSpace\TripalDefaultIdSpace.
Drupal\tripal\TripalVocabTerms\Interfaces\TripalCollectionPluginInterface::isValid | ( | ) |
Tests if this collection is valid or not.
Implemented in Drupal\tripal_chado\Plugin\TripalVocabulary\ChadoVocabulary, Drupal\tripal_chado\Plugin\TripalIdSpace\ChadoIdSpace, Drupal\tripal\Plugin\TripalVocabulary\TripalDefaultVocabulary, and Drupal\tripal\Plugin\TripalIdSpace\TripalDefaultIdSpace.
Drupal\tripal\TripalVocabTerms\Interfaces\TripalCollectionPluginInterface::recordExists | ( | ) |
Indicates if the underlying data store has a record for this collection.
This function will be called by the collection plugin manager to ensure that the record for this collection exists and if not allow it to create it by calling the create() method or prevent addition of duplicate entries.
Implemented in Drupal\tripal_chado\Plugin\TripalVocabulary\ChadoVocabulary, Drupal\tripal_chado\Plugin\TripalIdSpace\ChadoIdSpace, Drupal\tripal\Plugin\TripalVocabulary\TripalDefaultVocabulary, and Drupal\tripal\Plugin\TripalIdSpace\TripalDefaultIdSpace.