FinderIndexerHelper::addContentType
Method to add a content type to the database.
Signature
public function addContentType(string
$title,
[string
$mime = null] )
Parameters
-
$title
- The type of content. For example: PDF
-
$mime
- The mime type of the content. For example: PDF [optional]
Returns
- integer
- The id of the content type.
Errors/Exceptions
-
Exception
- on database error.