You are here

public function ContentSyncMessage::getInfo in Content Synchronization 8

Same name and namespace in other branches
  1. 8.2 src/Element/ContentSyncMessage.php \Drupal\content_sync\Element\ContentSyncMessage::getInfo()
  2. 3.0.x src/Element/ContentSyncMessage.php \Drupal\content_sync\Element\ContentSyncMessage::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 ElementInterface::getInfo

File

src/Element/ContentSyncMessage.php, line 44

Class

ContentSyncMessage
Provides a render element for message.

Namespace

Drupal\content_sync\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#message_type' => 'status',
    '#message_message' => '',
    '#message_close' => FALSE,
    '#message_close_effect' => 'slide',
    '#message_id' => '',
    '#message_storage' => '',
    '#status_headings' => [],
    '#pre_render' => [
      [
        $class,
        'preRenderContentSyncMessage',
      ],
    ],
    '#theme_wrappers' => [
      'content_sync_message',
    ],
  ];
}