Checks if a slug exists among records from the content table.


  • Full name: if_content_slug_exists
  • Defined in: cms/core/Shared/Helpers/db.php

Parameters

Parameter Type Description
$contentId string Content id to check against or null.
$slug string Slug to search for.
$contentType string The content type to filter.

Return Value

bool

Returns true if content slug exists or false otherwise.