Function Hook_CMA->get_view_url
Definitions
sources/content.php
- Get a view URL for content.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
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) |
| $skip_keep | boolean | No | No | False | N/A | N/A | Whether to avoid keep_* parameters as it's going in an e-mail |
| $append | string | No | No | Blank (empty string) | N/A | N/A | What to append to the view page-link |
Returns
- The URL (blank: none)
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get a view URL for content.
*
* @param ?array $row The database row for the content (null: no ID, assume passed in some other way)
* @param boolean $skip_keep Whether to avoid keep_* parameters as it's going in an e-mail
* @param string $append What to append to the view page-link
* @return Tempcode The URL (blank: none)
*/
public function get_view_url(?array $row, bool $skip_keep = false, string $append = '') : object
* Get a view URL for content.
*
* @param ?array $row The database row for the content (null: no ID, assume passed in some other way)
* @param boolean $skip_keep Whether to avoid keep_* parameters as it's going in an e-mail
* @param string $append What to append to the view page-link
* @return Tempcode The URL (blank: none)
*/
public function get_view_url(?array $row, bool $skip_keep = false, string $append = '') : object

