public function PrintableFormatBase::setContent in Printer and PDF versions for Drupal 8+ 8
Same name and namespace in other branches
- 2.x src/Plugin/PrintableFormatBase.php \Drupal\printable\Plugin\PrintableFormatBase::setContent()
Set the content for the printable response.
Parameters
array $content: A render array of the content to be output by the printable format.
Overrides PrintableFormatInterface::setContent
File
- src/
Plugin/ PrintableFormatBase.php, line 138
Class
- PrintableFormatBase
- Provides a base class for Filter plugins.
Namespace
Drupal\printable\PluginCode
public function setContent(array $content) {
$this->content = $content;
$this->footerContent = NULL;
if ($this->configFactory
->get('printable.settings')
->get('list_attribute')) {
$this->footerContent = $this->linkExtractor
->listAttribute((string) render($this->content));
}
}