Function __global->find_id_via_url_moniker
Definitions
sources/urls2.php
- Find the ID from a content-type & moniker combination.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $content_type | ID_TEXT | No | No | required parameter | N/A | N/A | The content type |
| $url_moniker | SHORT_TEXT | No | No | required parameter | N/A | N/A | The URL moniker |
Returns
- The ID (null: not found)
- Type: ?ID_TEXT
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find the ID from a content-type & moniker combination.
*
* @param ID_TEXT $content_type The content type
* @param SHORT_TEXT $url_moniker The URL moniker
* @return ?ID_TEXT The ID (null: not found)
*/
function find_id_via_url_moniker(string $content_type, string $url_moniker) : ?string
* Find the ID from a content-type & moniker combination.
*
* @param ID_TEXT $content_type The content type
* @param SHORT_TEXT $url_moniker The URL moniker
* @return ?ID_TEXT The ID (null: not found)
*/
function find_id_via_url_moniker(string $content_type, string $url_moniker) : ?string

