You are here

public function PaymentLineItemsDisplay::getInfo in Payment 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 ElementInterface::getInfo

File

src/Element/PaymentLineItemsDisplay.php, line 60

Class

PaymentLineItemsDisplay
Provides an element to display payment line items.

Namespace

Drupal\payment\Element

Code

public function getInfo() {
  $plugin_id = $this
    ->getPluginId();
  return array(
    // A \Drupal\payment\LineItemCollectionInterface instance (required).
    '#payment_line_items' => NULL,
    '#pre_render' => [
      [
        get_class($this),
        'instantiate#preRender#' . $plugin_id,
      ],
    ],
  );
}