Function Hook_CMA->get_view_page_link

Definitions

sources/content.php

  • Get a view page-link for content.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

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 (null: no ID, assume passed in some other way)
$append string No No Blank (empty string) N/A N/A What to append to the view page-link

Returns

  • The page-link (blank: none)
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get a view page-link for content.
 *
 * @param  ?array $row The database row for the content (null: no ID, assume passed in some other way)
 * @param  string $append What to append to the view page-link
 * @return string The page-link (blank: none)
 */

public function get_view_page_link(?array $row, string $append = '') : string