Method |
Description |
|
__construct ( array $typemap, Config $config, Bolt\Storage\Field\Sanitiser\SanitiserInterface $sanitiser ) |
Constructor. |
|
addFieldType ( $name, $handler ) |
Shorthand to add a field to both the new and legacy managers. |
|
get ( $class, $mapping ) : mixed |
Gets the field instance for the supplied class. |
|
getFieldFor ( $type ) : boolean | mixed |
Looks up a type from the typemap and returns a field class. |
|
hasCustomHandler ( $name ) : boolean |
Note, this method is for Bolt use only, as a way to distinguish which fields have been added outside of the
core system. It will be removed in a future version. |
|
setEntityManager ( EntityManager $em = null ) |
Set an instance of EntityManager |
|
setHandler ( $class, callable | object $handler ) |
Links the field name found in the config to a callable handler. |
|