class SocialLanguageModalRenderer in Open Social 8
Same name and namespace in other branches
- 8.9 modules/custom/social_language/src/SocialLanguageModalRenderer.php \Drupal\social_language\SocialLanguageModalRenderer
- 8.2 modules/custom/social_language/src/SocialLanguageModalRenderer.php \Drupal\social_language\SocialLanguageModalRenderer
- 8.3 modules/custom/social_language/src/SocialLanguageModalRenderer.php \Drupal\social_language\SocialLanguageModalRenderer
- 8.4 modules/custom/social_language/src/SocialLanguageModalRenderer.php \Drupal\social_language\SocialLanguageModalRenderer
- 8.5 modules/custom/social_language/src/SocialLanguageModalRenderer.php \Drupal\social_language\SocialLanguageModalRenderer
- 8.6 modules/custom/social_language/src/SocialLanguageModalRenderer.php \Drupal\social_language\SocialLanguageModalRenderer
- 8.7 modules/custom/social_language/src/SocialLanguageModalRenderer.php \Drupal\social_language\SocialLanguageModalRenderer
- 8.8 modules/custom/social_language/src/SocialLanguageModalRenderer.php \Drupal\social_language\SocialLanguageModalRenderer
- 10.3.x modules/custom/social_language/src/SocialLanguageModalRenderer.php \Drupal\social_language\SocialLanguageModalRenderer
- 10.0.x modules/custom/social_language/src/SocialLanguageModalRenderer.php \Drupal\social_language\SocialLanguageModalRenderer
- 10.1.x modules/custom/social_language/src/SocialLanguageModalRenderer.php \Drupal\social_language\SocialLanguageModalRenderer
- 10.2.x modules/custom/social_language/src/SocialLanguageModalRenderer.php \Drupal\social_language\SocialLanguageModalRenderer
Social Language main content renderer for modal dialog requests.
Hierarchy
- class \Drupal\Core\Render\MainContent\DialogRenderer implements MainContentRendererInterface
- class \Drupal\Core\Render\MainContent\ModalRenderer
- class \Drupal\social_language\SocialLanguageModalRenderer uses StringTranslationTrait
- class \Drupal\Core\Render\MainContent\ModalRenderer
Expanded class hierarchy of SocialLanguageModalRenderer
File
- modules/
custom/ social_language/ src/ SocialLanguageModalRenderer.php, line 13
Namespace
Drupal\social_languageView source
class SocialLanguageModalRenderer extends ModalRenderer {
use StringTranslationTrait;
/**
* {@inheritdoc}
*/
public function renderResponse(array $main_content, Request $request, RouteMatchInterface $route_match) {
$sub_request = $request->request
->all();
$sub_request['dialogOptions']['closeText'] = $this
->t('Close');
$request = new Request($request->query
->all(), $sub_request, $request->attributes
->all(), $request->cookies
->all(), $request->files
->all(), $request->server
->all(), $request
->getContent());
return parent::renderResponse($main_content, $request, $route_match);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DialogRenderer:: |
protected | property | The renderer. | 1 |
DialogRenderer:: |
protected | property | The title resolver. | |
DialogRenderer:: |
protected | function | Determine the target selector for the OpenDialogCommand. | |
DialogRenderer:: |
public | function | Constructs a new DialogRenderer. | 2 |
SocialLanguageModalRenderer:: |
public | function |
Renders the main content render array into a response. Overrides ModalRenderer:: |
|
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. |