Function Hook_CMA->get_title

Definitions

sources/content.php

  • Get content title of a content row.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$row array No No required parameter N/A N/A The database row for the content
$render_type integer No No 1 N/A N/A A FIELD_RENDER_* constant
&$falled_back_to_id boolean Yes No False N/A N/A Whether this has had to fall back to an ID due to missing title (returned by reference)
$resource_fs_style boolean No No False N/A N/A Whether to use the content API as resource-fs requires (may be slightly different)

Returns

  • Content title (string or Tempcode, depending on $render_type)
  • Type: mixed
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get content title of a content row.
 *
 * @param  array $row The database row for the content
 * @param  integer $render_type A FIELD_RENDER_* constant
 * @param  boolean $falled_back_to_id Whether this has had to fall back to an ID due to missing title (returned by reference)
 * @param  boolean $resource_fs_style Whether to use the content API as resource-fs requires (may be slightly different)
 * @return mixed Content title (string or Tempcode, depending on $render_type)
 */

public function get_title(array $row, int $render_type = 1, bool &$falled_back_to_id = false, bool $resource_fs_style = false)