Overridden class for entity translation controllers.
Expanded class hierarchy of ConfigTranslationControllerOverride
class ConfigTranslationControllerOverride extends ConfigTranslationController {
/**
* {@inheritdoc}
*/
public function itemPage(Request $request, RouteMatchInterface $route_match, $plugin_id) {
$build = parent::itemPage($request, $route_match, $plugin_id);
if (\Drupal::entityTypeManager()
->getAccessControlHandler('tmgmt_job')
->createAccess()) {
$build = \Drupal::formBuilder()
->getForm('Drupal\\tmgmt_config\\Form\\ConfigTranslateForm', $build, $plugin_id);
}
return $build;
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigTranslationControllerOverride:: |
public | function |