webCOMAND

ContentTypeField::is_layout_type()

Return TRUE if this field is a layout type field, such as a heading, comment, tab set, tab or group.

Prototype

boolean is_layout_type()

Return

Return TRUE if this field is a layout type field, otherwise FALSE.

Example

// note that the Metadata tab is a layout type field
$repo = comand::repo();
$web_page_ct = $repo->get_content_type('SitesWebPage');
$meta_data_field = $web_page_ct->get_field('Metadata');
if($meta_data_field->is_layout_type()) {
    echo("Metadata is a Layout Type field.\n");
}

Related

is_reference_type()