You are here

public function YamlFormHandlerBase::getSummary in YAML Form 8

Returns a render array summarizing the configuration of the form handler.

Return value

array A render array.

Overrides YamlFormHandlerInterface::getSummary

3 calls to YamlFormHandlerBase::getSummary()
EmailYamlFormHandler::getMessageSummary in src/Plugin/YamlFormHandler/EmailYamlFormHandler.php
Build message summary.
EmailYamlFormHandler::getSummary in src/Plugin/YamlFormHandler/EmailYamlFormHandler.php
Returns a render array summarizing the configuration of the form handler.
RemotePostYamlFormHandler::getSummary in src/Plugin/YamlFormHandler/RemotePostYamlFormHandler.php
Returns a render array summarizing the configuration of the form handler.
2 methods override YamlFormHandlerBase::getSummary()
EmailYamlFormHandler::getSummary in src/Plugin/YamlFormHandler/EmailYamlFormHandler.php
Returns a render array summarizing the configuration of the form handler.
RemotePostYamlFormHandler::getSummary in src/Plugin/YamlFormHandler/RemotePostYamlFormHandler.php
Returns a render array summarizing the configuration of the form handler.

File

src/YamlFormHandlerBase.php, line 111

Class

YamlFormHandlerBase
Provides a base class for a form handler.

Namespace

Drupal\yamlform

Code

public function getSummary() {
  return [
    '#theme' => 'yamlform_handler_' . $this->pluginId . '_summary',
    '#settings' => $this->configuration,
    '#handler' => [
      'id' => $this->pluginDefinition['id'],
      'handler_id' => $this
        ->getHandlerId(),
      'label' => $this
        ->label(),
      'description' => $this->pluginDefinition['description'],
    ],
  ];
}