public function Flexiform::getBuilder in Flexiform 7
File
- ./
flexiform.entity.inc, line 26 - flexiform.entity.inc
Class
- Flexiform
- The class used for flexiform entities
Code
public function getBuilder($base_entity = NULL) {
$builder = flexiform_builder_info($this->builder);
$class_name = $builder['class'];
if (!class_exists($class_name)) {
throw new Exception('Builder class does not exist!');
}
return new $class_name($this, $base_entity);
}