public function PrintLink::getInfo in Entity Print 8.2
Returns the element properties for this element.
Return value
array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.
Overrides Link::getInfo
File
- src/
Element/ PrintLink.php, line 18
Class
- PrintLink
- The print link.
Namespace
Drupal\entity_print\ElementCode
public function getInfo() {
$info = parent::getInfo();
return [
'#theme_wrappers' => [
'container' => [
'#attributes' => [
'class' => [
'print__wrapper',
],
],
],
],
'#attributes' => [
'class' => [
'print__link',
],
],
] + $info;
}