Checks if a slug exists among records from the content type table.
- Full name:
if_content_type_slug_exists - Defined in:
cms/core/Shared/Helpers/db.php
Parameters
| Parameter | Type | Description |
|---|---|---|
$contentTypeId |
string | Content Type id to check against. |
$slug |
string | Slug to search for. |
Return Value
bool
Returns true if content type slug exists or false otherwise.