class PageConfigMapper in Page Manager 8
Same name and namespace in other branches
- 8.4 page_manager_ui/src/ConfigTranslation/PageConfigMapper.php \Drupal\page_manager_ui\ConfigTranslation\PageConfigMapper
Configuration mapper for page_manager pages.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
- class \Drupal\config_translation\ConfigNamesMapper implements ConfigMapperInterface, ContainerFactoryPluginInterface
- class \Drupal\config_translation\ConfigEntityMapper uses DeprecatedServicePropertyTrait
- class \Drupal\page_manager_ui\ConfigTranslation\PageConfigMapper
- class \Drupal\config_translation\ConfigEntityMapper uses DeprecatedServicePropertyTrait
- class \Drupal\config_translation\ConfigNamesMapper implements ConfigMapperInterface, ContainerFactoryPluginInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
Expanded class hierarchy of PageConfigMapper
1 file declares its use of PageConfigMapper
- page_manager_ui.module in page_manager_ui/
page_manager_ui.module - Provides a UI for Page Manager.
File
- page_manager_ui/
src/ ConfigTranslation/ PageConfigMapper.php, line 17 - Contains \Drupal\page_manager_ui\ConfigTranslation\PageConfigMapper.
Namespace
Drupal\page_manager_ui\ConfigTranslationView source
class PageConfigMapper extends ConfigEntityMapper {
/**
* {@inheritdoc}
*/
protected function processRoute(Route $route) {
parent::processRoute($route);
// Change the paths for config translation routes to outside the wizard.
$path = $route
->getPath();
$path = str_replace('manage/{machine_name}/{step}', '{page}', $path);
$route
->setPath($path);
}
/**
* {@inheritdoc}
*/
public function getBaseRouteParameters() {
$parameters = parent::getBaseRouteParameters();
$parameters['step'] = 'general';
$parameters['machine_name'] = $parameters['page'];
return $parameters;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigEntityMapper:: |
protected | property | ||
ConfigEntityMapper:: |
protected | property | Loaded entity instance to help produce the translation interface. | 1 |
ConfigEntityMapper:: |
protected | property | Configuration entity type name. | |
ConfigEntityMapper:: |
protected | property | The entity manager. | |
ConfigEntityMapper:: |
protected | property | The label for the entity type. | |
ConfigEntityMapper:: |
public static | function |
Creates an instance of the plugin. Overrides ConfigNamesMapper:: |
|
ConfigEntityMapper:: |
public | function |
Returns the name of the contextual link group to add contextual links to. Overrides ConfigNamesMapper:: |
|
ConfigEntityMapper:: |
public | function | Gets the entity instance for this mapper. | |
ConfigEntityMapper:: |
public | function |
Provides an array of information to build a list of operation links. Overrides ConfigNamesMapper:: |
|
ConfigEntityMapper:: |
public | function |
Returns route name for the translation overview route. Overrides ConfigNamesMapper:: |
1 |
ConfigEntityMapper:: |
public | function |
Returns title of this translation page. Overrides ConfigNamesMapper:: |
|
ConfigEntityMapper:: |
public | function | Gets the entity type from this mapper. | |
ConfigEntityMapper:: |
public | function |
Returns the label of the type of data the mapper encapsulates. Overrides ConfigNamesMapper:: |
1 |
ConfigEntityMapper:: |
public | function |
Returns the name of the type of data the mapper encapsulates. Overrides ConfigNamesMapper:: |
|
ConfigEntityMapper:: |
public | function |
Populate the config mapper with route match data. Overrides ConfigNamesMapper:: |
|
ConfigEntityMapper:: |
public | function | Sets the entity instance for this mapper. | 2 |
ConfigEntityMapper:: |
public | function | Set entity type for this mapper. | |
ConfigEntityMapper:: |
public | function |
Constructs a ConfigEntityMapper. Overrides ConfigNamesMapper:: |
|
ConfigNamesMapper:: |
protected | property | The base route object that the mapper is attached to. | |
ConfigNamesMapper:: |
protected | property | The configuration factory. | |
ConfigNamesMapper:: |
protected | property | The mapper plugin discovery service. | |
ConfigNamesMapper:: |
protected | property | The event dispatcher. | |
ConfigNamesMapper:: |
protected | property | The language code of the language this mapper, if any. | |
ConfigNamesMapper:: |
protected | property | The language manager. | |
ConfigNamesMapper:: |
protected | property | The typed configuration manager. | |
ConfigNamesMapper:: |
protected | property | The available routes. | |
ConfigNamesMapper:: |
protected | property | The route provider. | |
ConfigNamesMapper:: |
protected | property | The typed config manager. | |
ConfigNamesMapper:: |
public | function |
Adds the given configuration name to the list of names. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Returns the route object for a translation add form route. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Returns route name for the translation add form route. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Returns the route parameters for the translation add form route. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Returns a processed path for the base route the mapper is attached to. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Returns the base route object the mapper is attached to. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Returns the name of the base route the mapper is attached to. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Returns an array with all configuration data. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Returns an array of configuration names for the mapper. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Returns the route object for the translation deletion route. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Returns route name for the translation deletion route. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Returns the route parameters for the translation deletion route. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Returns the route object for a translation edit form route. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Returns route name for the translation edit form route. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Returns the route parameters for the translation edit form route. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Returns the original language code of the configuration. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Returns the language code of a configuration object given its name. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Returns a processed path for the translation overview route. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Returns the route object for a translation overview route. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Returns the route parameters for the translation overview route. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Returns the weight of the mapper. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Checks that all pieces of this configuration mapper have a schema. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Checks if pieces of this configuration mapper have translatables. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Checks whether there is already a translation for this mapper. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Sets the original language code. Overrides ConfigMapperInterface:: |
|
ConfigNamesMapper:: |
public | function |
Sets the route collection. Overrides ConfigMapperInterface:: |
|
DependencySerializationTrait:: |
protected | property | An array of entity type IDs keyed by the property name of their storages. | |
DependencySerializationTrait:: |
protected | property | An array of service IDs keyed by property name used for serialization. | |
DependencySerializationTrait:: |
public | function | 1 | |
DependencySerializationTrait:: |
public | function | 2 | |
DeprecatedServicePropertyTrait:: |
public | function | Allows to access deprecated/removed properties. | |
MessengerTrait:: |
protected | property | The messenger. | 29 |
MessengerTrait:: |
public | function | Gets the messenger. | 29 |
MessengerTrait:: |
public | function | Sets the messenger. | |
PageConfigMapper:: |
public | function |
Returns the route parameters for the base route the mapper is attached to. Overrides ConfigEntityMapper:: |
|
PageConfigMapper:: |
protected | function |
Allows to process all config translation routes. Overrides ConfigEntityMapper:: |
|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |