public function FlexiformFormEntityBase::__construct in Flexiform 7
Construct a Flexiform Form Entity class.
Parameters
FlexiformFormEntityManagerInterface $manager:
string $namespace:
array $getter:
array $settings (Optional):
File
- includes/
form_entity/ base.form_entity.inc, line 50 - Contains class for a basic entity getter.
Class
- FlexiformFormEntityBase
- Default Form Entity Class for Managing a form Entity.
Code
public function __construct(FlexiformFormEntityManagerInterface $manager, $namespace, $getter, $settings = array()) {
$this->manager = $manager;
$this->entity_namespace = $namespace;
$this->getter = $getter;
$this->settings = $this->manager
->getEntitySettings($namespace) ?: $settings;
$this->entity_type = $this->settings['entity_type'];
}