Tripal
Functions
tripal.entities.api.php File Reference

Functions

 tripal_get_title_format ($bundle)
 
 tripal_get_default_title_format ($bundle)
 
 tripal_get_entity_tokens ($bundle, $options=[])
 
 tripal_replace_entity_tokens ($string, &$entity, $bundle_entity=NULL)
 
 theme_token_list ($tokens)
 
 tripal_tripal_cron_notification ()
 

Detailed Description

Provides an application programming interface (API) for working with TripalEntity content types (bundles) and their entities.

Function Documentation

◆ theme_token_list()

theme_token_list (   $tokens)

Formats the tokens for display.

Parameters
array$tokensA list of tokens generated via tripal_get_entity_tokens().
Returns
A render array defining the available tokens.

◆ tripal_get_entity_tokens()

tripal_get_entity_tokens (   $bundle,
  $options = [] 
)

Returns an array of tokens based on Tripal Entity Fields.

Parameters
TripalBundle$bundleThe bundle entity for which you want tokens.
Returns
An array of tokens where the key is the machine_name of the token.

◆ tripal_get_title_format()

tripal_get_title_format (   $bundle)

Get Page Title Format for a given Tripal Entity Type.

Parameters
TripalEntityType$bundleThe Entity object for the Tripal Entity Type the title format is for.