function AttachmentsResponseProcessorInterface::processAttachments
Same name in other branches
- 9 core/lib/Drupal/Core/Render/AttachmentsResponseProcessorInterface.php \Drupal\Core\Render\AttachmentsResponseProcessorInterface::processAttachments()
- 8.9.x core/lib/Drupal/Core/Render/AttachmentsResponseProcessorInterface.php \Drupal\Core\Render\AttachmentsResponseProcessorInterface::processAttachments()
- 10 core/lib/Drupal/Core/Render/AttachmentsResponseProcessorInterface.php \Drupal\Core\Render\AttachmentsResponseProcessorInterface::processAttachments()
Processes the attachments of a response that has attachments.
Placeholders need to be rendered first in order to have all attachments available for processing. For an example, see \Drupal\Core\Render\HtmlResponseAttachmentsProcessor::renderPlaceholders()
Parameters
\Drupal\Core\Render\AttachmentsInterface $response: The response to process.
Return value
\Drupal\Core\Render\AttachmentsInterface The processed response, with the attachments updated to reflect their final values.
Throws
\InvalidArgumentException Thrown when the $response parameter is not the type of response object the processor expects.
See also
\Drupal\Core\Render\AttachmentsInterface
2 methods override AttachmentsResponseProcessorInterface::processAttachments()
- AjaxResponseAttachmentsProcessor::processAttachments in core/
lib/ Drupal/ Core/ Ajax/ AjaxResponseAttachmentsProcessor.php - Processes the attachments of a response that has attachments.
- HtmlResponseAttachmentsProcessor::processAttachments in core/
lib/ Drupal/ Core/ Render/ HtmlResponseAttachmentsProcessor.php - Processes the attachments of a response that has attachments.
File
-
core/
lib/ Drupal/ Core/ Render/ AttachmentsResponseProcessorInterface.php, line 36
Class
- AttachmentsResponseProcessorInterface
- Defines an interface for processing attachments of responses that have them.
Namespace
Drupal\Core\RenderCode
public function processAttachments(AttachmentsInterface $response);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.