public function AmpProcessedText::getInfo in Accelerated Mobile Pages (AMP) 8.3
Same name and namespace in other branches
- 8 src/Element/AmpProcessedText.php \Drupal\amp\Element\AmpProcessedText::getInfo()
- 8.2 src/Element/AmpProcessedText.php \Drupal\amp\Element\AmpProcessedText::getInfo()
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 ProcessedText::getInfo
File
- src/
Element/ AmpProcessedText.php, line 18
Class
- AmpProcessedText
- Provides an amp-processed text render element.
Namespace
Drupal\amp\ElementCode
public function getInfo() {
$class = get_class($this);
return [
'#text' => '',
'#format' => NULL,
'#filter_types_to_skip' => [],
'#langcode' => '',
'#pre_render' => [
[
$class,
'preRenderText',
],
[
$class,
'preRenderAmpText',
],
],
'#cache' => [
'contexts' => [
'url.query_args:amp',
'url.query_args:debug',
],
'tags' => [
'config:amp.settings',
],
],
];
}