- ⌂ Content Type Field
- Methods
ContentTypeField::is_content_type()
Return TRUE if this field is a content type field, also known as a relationship field, which includes embedded, forward- and back-reference fields.
Prototype
boolean is_content_type()
Return
Return TRUE if this field is a content type field, otherwise FALSE.
Example
// note that the Web Page Sections field is a content type field
$repo = comand::repo();
$web_page_ct = $repo->get_content_type('SitesWebPage');
$status_field = $web_page_ct->get_field('Sections');
if($status_field->is_content_type()) {
echo("Sections is a Content Type field.\n");
}