HasExportType
Adds export flag for the current type (enable or check).
Namespace
JobMetric\Typeify\Traits\HasExportType
Methods
export(): static
Enable export for the current type.
$postType->define('blog')->export();
Throws: TypeifyTypeNotMatchException when no type is selected.
hasExport(): bool
Whether export is enabled for the current type.
$postType->type('blog');
if ($postType->hasExport()) {
// allow export for this type
}
Throws: TypeifyTypeNotMatchException when no type is selected.