Function __global->get_potential_gallery_title
Definitions
sources/galleries2.php
- Get the potential title of a gallery - real name if gallery exists.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $cat | ID_TEXT | No | No | required parameter | N/A | N/A | The gallery codename |
Returns
- The gallery title (null: does not exist and won't be auto-created)
- Type: ?SHORT_TEXT
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get the potential title of a gallery - real name if gallery exists.
*
* @param ID_TEXT $cat The gallery codename
* @return ?SHORT_TEXT The gallery title (null: does not exist and won't be auto-created)
*/
function get_potential_gallery_title(string $cat) : ?string
* Get the potential title of a gallery - real name if gallery exists.
*
* @param ID_TEXT $cat The gallery codename
* @return ?SHORT_TEXT The gallery title (null: does not exist and won't be auto-created)
*/
function get_potential_gallery_title(string $cat) : ?string
