Tripal
|
Public Member Functions | |
getID () | |
label () | |
setTitle ($title=NULL, $cache=[]) | |
getTitle () | |
setAlias ($path_alias=NULL) | |
getType () | |
getCreatedTime () | |
setCreatedTime ($timestamp) | |
getOwner () | |
getOwnerId () | |
setOwnerId ($uid) | |
setOwner (UserInterface $account) | |
isPublished () | |
setPublished ($published) | |
preSave (EntityStorageInterface $storage) | |
validate () | |
Static Public Member Functions | |
static | create (array $values=[]) |
static | preCreate (EntityStorageInterface $storage_controller, array &$values) |
static | baseFieldDefinitions (EntityTypeInterface $entity_type) |
static | getValuesArray ($entity) |
static | postLoad (EntityStorageInterface $storage, array &$entities) |
Defines the Tripal Content entity.
@ContentEntityType( id = "tripal_entity", label = @Translation("Tripal Content"), bundle_label = @Translation("Tripal Content type"), handlers = { "storage" = "Drupal\Core\Entity\Sql\SqlContentEntityStorage", "view_builder" = "Drupal\Core\Entity\EntityViewBuilder", "list_builder" = "Drupal\tripal\ListBuilders\TripalEntityListBuilder", "views_data" = "Drupal\tripal\Entity\TripalEntityViewsData",
"form" = { "default" = "Drupal\tripal\Form\TripalEntityForm", "add" = "Drupal\tripal\Form\TripalEntityForm", "edit" = "Drupal\tripal\Form\TripalEntityForm", "delete" = "Drupal\tripal\Form\TripalEntityDeleteForm", }, "access" = "Drupal\tripal\Access\TripalEntityAccessControlHandler", "route_provider" = { "html" = "Drupal\tripal\Routing\TripalEntityHtmlRouteProvider", }, }, base_table = "tripal_entity", entity_keys = { "id" = "id", "bundle" = "type", "uid" = "user_id", "status" = "status", }, links = { "canonical" = "/bio_data/{tripal_entity}", "add-page" = "/bio_data/add", "add-form" = "/bio_data/add/{tripal_entity_type}", "edit-form" = "/bio_data/{tripal_entity}/edit", "delete-form" = "/bio_data/{tripal_entity}/delete", "collection" = "/admin/content/bio_data", }, bundle_entity_type = "tripal_entity_type", field_ui_base_route = "entity.tripal_entity_type.edit_form" )
|
static |
{}
|
static |
Constructs a new Tripal entity object, without permanently saving it.
array | $values |
|
Drupal\tripal\Entity\TripalEntity::getCreatedTime | ( | ) |
{Gets the Tripal Content creation timestamp.
Implements Drupal\tripal\Entity\TripalEntityInterface.
Drupal\tripal\Entity\TripalEntity::getID | ( | ) |
{}
Drupal\tripal\Entity\TripalEntity::getOwner | ( | ) |
{}
Drupal\tripal\Entity\TripalEntity::getOwnerId | ( | ) |
{}
Drupal\tripal\Entity\TripalEntity::getTitle | ( | ) |
{}
Drupal\tripal\Entity\TripalEntity::getType | ( | ) |
{Gets the Tripal Content type.
Implements Drupal\tripal\Entity\TripalEntityInterface.
|
static |
Returns an associative array of property type value for the entity.
The array is keyed in the following levels:
This function also returns an array of TripalStorage objects.
TripalEntity | $entity |
Drupal\tripal\Entity\TripalEntity::isPublished | ( | ) |
{Returns the Tripal Content published status indicator.Unpublished Tripal Content are only visible to restricted users.
Implements Drupal\tripal\Entity\TripalEntityInterface.
Drupal\tripal\Entity\TripalEntity::label | ( | ) |
{}
|
static |
{}
|
static |
{}
Drupal\tripal\Entity\TripalEntity::preSave | ( | EntityStorageInterface | $storage | ) |
{}
Drupal\tripal\Entity\TripalEntity::setAlias | ( | $path_alias = NULL | ) |
Sets the URL alias for the current entity.
string | $alias | The alias to use. It can contain tokens the correspond to field values. Token should be be compatible with those returned by tripal_get_entity_tokens(). |
Drupal\tripal\Entity\TripalEntity::setCreatedTime | ( | $timestamp | ) |
{Sets the Tripal Content creation timestamp.
int | $timestamp | The Tripal Content creation timestamp. |
Implements Drupal\tripal\Entity\TripalEntityInterface.
Drupal\tripal\Entity\TripalEntity::setOwner | ( | UserInterface | $account | ) |
{}
Drupal\tripal\Entity\TripalEntity::setOwnerId | ( | $uid | ) |
{}
Drupal\tripal\Entity\TripalEntity::setPublished | ( | $published | ) |
{Sets the published status of a Tripal Content.
bool | $published | TRUE to set this Tripal Content to published, FALSE to set it to unpublished. |
Implements Drupal\tripal\Entity\TripalEntityInterface.
Drupal\tripal\Entity\TripalEntity::setTitle | ( | $title = NULL , |
|
$cache = [] |
|||
) |
{}
Drupal\tripal\Entity\TripalEntity::validate | ( | ) |
{}