Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-25021

Implement missing limitation mappers

    XMLWordPrintable

Details

    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:

      Attachments

        Activity

          People

            Unassigned Unassigned
            jerome.vieilledent-obsolete@ez.no Jérôme Vieilledent (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 days, 30 minutes
                4d 30m