Details
-
Story
-
Resolution: Fixed
-
High
-
2015.09.1
-
None
Description
EZP-24713 adds support for policy limitations edition.
For a LimitationType to be editable, a form mapper service needs to be implemented.
Most LimitationTypes are multiple select based, so they can be based on \EzSystems\RepositoryForms\Limitation\Mapper\MultipleSelectionBasedMapper.
LimitationFormMappers are services implementing \EzSystems\RepositoryForms\Limitation\LimitationFormMapperInterface. Service definition must have ez.limitation.formMapper tag, with the limitation type identifier as limitationType service tag attribute.
Example
ezrepoforms.limitation.form_mapper.siteaccess: parent: ezrepoforms.limitation.form_mapper.multiple_selection class: %ezrepoforms.limitation.form_mapper.siteaccess.class% arguments: [%ezpublish.siteaccess.list%] tags: - { name: ez.limitation.formMapper, limitationType: SiteAccess }
All core limitation types are defined in CoreBundle's policies.yml.
Missing mappers are:
- Owner
- Group
Nodemoved to https://jira.ez.no/browse/EZP-25159Subtreemoved to https://jira.ez.no/browse/EZP-25159- State
- NewState
- ParentOwner
- ParentGroup
- ParentClass
- ParentDepth
- Language
- NewSection