ConfigTranslationOverviewAccess
class ConfigTranslationOverviewAccess implements AccessInterface (View source)
Checks access for displaying the configuration translation overview.
Properties
| protected ConfigMapperManagerInterface | $configMapperManager | The mapper plugin discovery service. |
|
| protected LanguageManagerInterface | $languageManager | The language manager. |
Methods
Constructs a ConfigTranslationOverviewAccess object.
Checks access to the overview based on permissions and translatability.
Gets a configuration mapper using a route match.
Checks access given an account, configuration mapper, and source language.
Details
__construct(ConfigMapperManagerInterface $config_mapper_manager, LanguageManagerInterface $language_manager)
Constructs a ConfigTranslationOverviewAccess object.
AccessResultInterface
access(RouteMatchInterface $route_match, AccountInterface $account)
Checks access to the overview based on permissions and translatability.
protected ConfigMapperInterface
getMapperFromRouteMatch(RouteMatchInterface $route_match)
Gets a configuration mapper using a route match.
protected AccessResultInterface
doCheckAccess(AccountInterface $account, ConfigMapperInterface $mapper, LanguageInterface|null $source_language = NULL)
Checks access given an account, configuration mapper, and source language.
Grants access if the proper permission is granted to the account, the configuration has translatable pieces, and the source language is not locked given it is present.