ConfigMapperInterface
interface ConfigMapperInterface (View source)
Defines an interface for configuration mapper.
Methods
Returns title of this translation page.
Sets the route collection.
Returns the name of the base route the mapper is attached to.
Returns the route parameters for the base route the mapper is attached to.
Returns the base route object the mapper is attached to.
Returns a processed path for the base route the mapper is attached to.
Returns route name for the translation overview route.
Returns the route parameters for the translation overview route.
Returns the route object for a translation overview route.
Returns a processed path for the translation overview route.
Returns route name for the translation add form route.
Returns the route parameters for the translation add form route.
Returns the route object for a translation add form route.
Returns route name for the translation edit form route.
Returns the route parameters for the translation edit form route.
Returns the route object for a translation edit form route.
Returns route name for the translation deletion route.
Returns the route parameters for the translation deletion route.
Returns the route object for the translation deletion route.
Returns an array of configuration names for the mapper.
Adds the given configuration name to the list of names.
Returns the weight of the mapper.
Returns an array with all configuration data.
Returns the original language code of the configuration.
Returns the language code of a configuration object given its name.
Sets the original language code.
Returns the name of the type of data the mapper encapsulates.
Provides an array of information to build a list of operation links.
Returns the label of the type of data the mapper encapsulates.
Checks that all pieces of this configuration mapper have a schema.
Checks if pieces of this configuration mapper have translatables.
Checks whether there is already a translation for this mapper.
Populate the config mapper with route match data.
Returns the name of the contextual link group to add contextual links to.
Details
string
getTitle()
Returns title of this translation page.
setRouteCollection(RouteCollection $collection)
Sets the route collection.
string
getBaseRouteName()
Returns the name of the base route the mapper is attached to.
array
getBaseRouteParameters()
Returns the route parameters for the base route the mapper is attached to.
Route
getBaseRoute()
Returns the base route object the mapper is attached to.
string
getBasePath()
Returns a processed path for the base route the mapper is attached to.
string
getOverviewRouteName()
Returns route name for the translation overview route.
array
getOverviewRouteParameters()
Returns the route parameters for the translation overview route.
Route
getOverviewRoute()
Returns the route object for a translation overview route.
string
getOverviewPath()
Returns a processed path for the translation overview route.
string
getAddRouteName()
Returns route name for the translation add form route.
array
getAddRouteParameters()
Returns the route parameters for the translation add form route.
Route
getAddRoute()
Returns the route object for a translation add form route.
string
getEditRouteName()
Returns route name for the translation edit form route.
array
getEditRouteParameters()
Returns the route parameters for the translation edit form route.
Route
getEditRoute()
Returns the route object for a translation edit form route.
string
getDeleteRouteName()
Returns route name for the translation deletion route.
array
getDeleteRouteParameters()
Returns the route parameters for the translation deletion route.
Route
getDeleteRoute()
Returns the route object for the translation deletion route.
array
getConfigNames()
Returns an array of configuration names for the mapper.
addConfigName(string $name)
Adds the given configuration name to the list of names.
Note that it is the responsibility of the calling code to ensure that the configuration exists.
int
getWeight()
Returns the weight of the mapper.
array
getConfigData()
Returns an array with all configuration data.
getLangcode()
Returns the original language code of the configuration.
string
getLangcodeFromConfig(string $config_name)
Returns the language code of a configuration object given its name.
$this
setLangcode(string $langcode)
Sets the original language code.
string
getTypeName()
Returns the name of the type of data the mapper encapsulates.
array
getOperations()
Provides an array of information to build a list of operation links.
string
getTypeLabel()
Returns the label of the type of data the mapper encapsulates.
bool
hasSchema()
Checks that all pieces of this configuration mapper have a schema.
bool
hasTranslatable()
Checks if pieces of this configuration mapper have translatables.
bool
hasTranslation(LanguageInterface $language)
Checks whether there is already a translation for this mapper.
populateFromRouteMatch(RouteMatchInterface $route_match)
Populate the config mapper with route match data.
string|null
getContextualLinkGroup()
Returns the name of the contextual link group to add contextual links to.