ContactFormRevisionsConverter.php in Config Entity Revisions 8.2
File
modules/contact_form_revisions/src/ParamConverter/ContactFormRevisionsConverter.phpView source
<?php
namespace Drupal\contact_form_revisions\ParamConverter;
use Drupal\config_entity_revisions\ConfigEntityRevisionsConverterBase;
use Drupal\Core\ParamConverter\ParamConverterInterface;
/**
* Provides upcasting for a contact entity, with revisions support.
*
* Example:
*
* pattern: '/some/{contact_form}/{revision_id}/and/{bar}'
* options:
* parameters:
* contact_form:
* type: 'entity:contact_form'
* tempstore: TRUE
* revision_id:
* \+d
*
* The value for {contact_form} will be converted to a contact entity prepared
* for the Contact UI and loaded from the contact temp store, but it will not
* touch the value for {bar}.
*
* This class extends AdminPathConfigEntityConverter rather than
* ContactUIConverter so that ContactUIConverter's converter can be replaced
* rather than extended
* (we call the parent method). Other methods should remain the same as
* ContactUIConverter.
*/
class ContactFormRevisionsConverter extends ConfigEntityRevisionsConverterBase implements ParamConverterInterface {
}
Classes
Name![]() |
Description |
---|---|
ContactFormRevisionsConverter | Provides upcasting for a contact entity, with revisions support. |