Function Hook_sitemap_base->_ameliorate_with_row
Definitions
sources/sitemap.php
- Extend the node structure with added details from our row data (if we have it).
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $options | integer | No | No | required parameter | N/A | N/A | A bitmask of SITEMAP_GEN_* options |
| &$struct | array | Yes | No | required parameter | N/A | N/A | Structure |
| $row | ?array | No | No | required parameter | N/A | N/A | Faked database row (null: we don't have row data) |
| $meta_gather | integer | No | No | required parameter | N/A | N/A | A bitmask of SITEMAP_GATHER_* constants, of extra data to include |
Preview
Code (PHP)
/**
* Extend the node structure with added details from our row data (if we have it).
*
* @param integer $options A bitmask of SITEMAP_GEN_* options
* @param array $struct Structure
* @param ?array $row Faked database row (null: we don't have row data)
* @param integer $meta_gather A bitmask of SITEMAP_GATHER_* constants, of extra data to include
*/
protected function _ameliorate_with_row(int $options, array &$struct, ?array $row, int $meta_gather)
* Extend the node structure with added details from our row data (if we have it).
*
* @param integer $options A bitmask of SITEMAP_GEN_* options
* @param array $struct Structure
* @param ?array $row Faked database row (null: we don't have row data)
* @param integer $meta_gather A bitmask of SITEMAP_GATHER_* constants, of extra data to include
*/
protected function _ameliorate_with_row(int $options, array &$struct, ?array $row, int $meta_gather)

