Function Hook_sitemap_topic->select_fields
Definitions
sources/hooks/systems/sitemap/topic.php
- Find what fields we should select for the Sitemap to be buildable. We don't want to select too much for perf reasons.Also find out what language fields we should load up for the table (returned by reference).
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $cma_info | ?array | No | No | Null | N/A | N/A | CMA info (null: standard for this hook) |
| $table_alias | ?string | No | No | Null | N/A | N/A | Table alias (null: none) |
| &$lang_fields_filtered | ?array | Yes | No | Null | N/A | N/A | List of language fields to load (null: not passed) |
Returns
- Map between field name and field type
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find what fields we should select for the Sitemap to be buildable. We don't want to select too much for perf reasons.Also find out what language fields we should load up for the table (returned by reference).
*
* @param ?array $cma_info CMA info (null: standard for this hook)
* @param ?string $table_alias Table alias (null: none)
* @param ?array $lang_fields_filtered List of language fields to load (null: not passed)
* @return array Map between field name and field type
*/
protected function select_fields(?array $cma_info = null, ?string $table_alias = null, ?array &$lang_fields_filtered = null) : array
* Find what fields we should select for the Sitemap to be buildable. We don't want to select too much for perf reasons.Also find out what language fields we should load up for the table (returned by reference).
*
* @param ?array $cma_info CMA info (null: standard for this hook)
* @param ?string $table_alias Table alias (null: none)
* @param ?array $lang_fields_filtered List of language fields to load (null: not passed)
* @return array Map between field name and field type
*/
protected function select_fields(?array $cma_info = null, ?string $table_alias = null, ?array &$lang_fields_filtered = null) : array

