Closed laceysanderson closed 4 years ago
TripalBundle
is now TripalEntityType
to match D8 Node conventions.
TripalEntityType Todo list
Tripal Entity Type and Tripal Entities are working!!! You can now create entity types based on a tripal vocabulary term and then create basic pages of that type. At this point nothing is connected to Chado (completely generic!) and all Drupal fields work.
Next steps are to port over the API, title and URL patterns, etc.
defaultLabel
becomes getLabel
defaultUri
becomes urlInfo
from ContentEntityBase save
is inherited from ContentEntityBaseThis file is no longer needed as it's part of the old Entity API.
All entity CRUD is now handled using the TripalEntity object...
$values = [
'title' => 'laceytest'.time(),
'type' => 'bio_data_1',
'uid' => 1,
];
$entity = \Drupal\tripal\Entity\TripalEntity::create($values);
$entity->save();
$entity = \Drupal\tripal\Entity\TripalEntity::load(1);
$entity->delete();
$entity = \Drupal\tripal\Entity\TripalEntity::load(1);
$entity->setTitle('New Title');
$entity->save();
$path = \Drupal::service('path.alias_storage')->save($system_path, $path_alias, $langcode);
$entity->save();
$entity = \Drupal\tripal\Entity\TripalEntity::load(1);
This will be handled as part of group 8 - Other integrations.
This is complete and has been expanded based on Drupal 8 standards.
Complete
I'm leaving TripalEntityController.inc for now since it doesn't actually pertain to the functioning of entities. Page title formats and URL alias' now work.
Basic views work for Tripal Content, Controlled Vocabularies and Controlled Vocabulary Terms. No views patch needed. Tripal4_Views_TripalEntity Tripal4_Views_TripalTerm Tripal4_Views_TripalVocab
More work will done as part of group 5 - Views.
I'm starting to tackle Tripal Bundle and Tripal Entity; specifically,