Function Hook_sitemap_content->_get_row
Definitions
sources/sitemap.php
- Get the database row for some content.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $content_id | ID_TEXT | No | No | required parameter | N/A | N/A | The content ID |
Returns
- The content row (null: not found)
- Type: ?array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get the database row for some content.
*
* @param ID_TEXT $content_id The content ID
* @return ?array The content row (null: not found)
*/
protected function _get_row(string $content_id) : ?array
* Get the database row for some content.
*
* @param ID_TEXT $content_id The content ID
* @return ?array The content row (null: not found)
*/
protected function _get_row(string $content_id) : ?array

