You are here

public function OpenApiUi::getInfo in OpenAPI UI 8

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 ElementInterface::getInfo

File

src/Element/OpenApiUi.php, line 61

Class

OpenApiUi
Defines a render element for OpenApi Doc display librarys.

Namespace

Drupal\openapi_ui\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#pre_render' => [
      [
        $class,
        'preRenderOpenApiUi',
      ],
    ],
  ];
}