class ContactFormRevisionsConverter in Config Entity Revisions 8.2
Same name in this branch
- 8.2 modules/contact_form_revisions/src/ParamConverter/ContactFormRevisionsConverter.php \Drupal\contact_form_revisions\ParamConverter\ContactFormRevisionsConverter
- 8.2 modules/contact_form_revisions/src/ProxyClass/ParamConverter/ContactFormRevisionsConverter.php \Drupal\contact_form_revisions\ProxyClass\ParamConverter\ContactFormRevisionsConverter
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.
Hierarchy
- class \Drupal\Core\ParamConverter\EntityConverter implements ParamConverterInterface uses DeprecatedServicePropertyTrait, DynamicEntityTypeParamConverterTrait
- class \Drupal\Core\ParamConverter\AdminPathConfigEntityConverter
- class \Drupal\config_entity_revisions\ConfigEntityRevisionsConverterBase implements ConfigEntityRevisionsConverterBaseInterface
- class \Drupal\contact_form_revisions\ParamConverter\ContactFormRevisionsConverter implements ParamConverterInterface
- class \Drupal\config_entity_revisions\ConfigEntityRevisionsConverterBase implements ConfigEntityRevisionsConverterBaseInterface
- class \Drupal\Core\ParamConverter\AdminPathConfigEntityConverter
Expanded class hierarchy of ContactFormRevisionsConverter
1 string reference to 'ContactFormRevisionsConverter'
- contact_form_revisions.services.yml in modules/
contact_form_revisions/ contact_form_revisions.services.yml - modules/contact_form_revisions/contact_form_revisions.services.yml
1 service uses ContactFormRevisionsConverter
File
- modules/
contact_form_revisions/ src/ ParamConverter/ ContactFormRevisionsConverter.php, line 32
Namespace
Drupal\contact_form_revisions\ParamConverterView source
class ContactFormRevisionsConverter extends ConfigEntityRevisionsConverterBase implements ParamConverterInterface {
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AdminPathConfigEntityConverter:: |
protected | property | The route admin context to determine whether a route is an admin one. | |
AdminPathConfigEntityConverter:: |
protected | property | The config factory. | |
AdminPathConfigEntityConverter:: |
public | function |
Determines if the converter applies to a specific route and variable. Overrides EntityConverter:: |
1 |
ConfigEntityRevisionsConverterBase:: |
protected | property | Stores the tempstore factory. | |
ConfigEntityRevisionsConverterBase:: |
protected | function | Default implementation of containerFor - the container is the object. | 1 |
ConfigEntityRevisionsConverterBase:: |
public | function |
Converts path variables to their corresponding objects. Overrides AdminPathConfigEntityConverter:: |
|
ConfigEntityRevisionsConverterBase:: |
public | function |
Determines the entity type ID given a route definition and route defaults. Overrides DynamicEntityTypeParamConverterTrait:: |
|
ConfigEntityRevisionsConverterBase:: |
protected | function | A prefix for tempstore keys - empty if tempstore is not used. | 1 |
ConfigEntityRevisionsConverterBase:: |
public | function |
Constructs a new converter. Overrides AdminPathConfigEntityConverter:: |
|
DeprecatedServicePropertyTrait:: |
public | function | Allows to access deprecated/removed properties. | |
EntityConverter:: |
protected | property | ||
EntityConverter:: |
protected | property | Entity repository. | |
EntityConverter:: |
protected | property | Entity type manager which performs the upcasting in the end. | |
EntityConverter:: |
protected | function | Returns the latest revision translation of the specified entity. | |
EntityConverter:: |
protected | function | Returns a language manager instance. | |
EntityConverter:: |
protected | function | Loads the specified entity revision. |