You are here

public function WebformEmailProvider::getMailPluginDefinition in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformEmailProvider.php \Drupal\webform\WebformEmailProvider::getMailPluginDefinition()

Get the mail back-end plugin definition.

Return value

array A plugin definition array.

Overrides WebformEmailProviderInterface::getMailPluginDefinition

File

src/WebformEmailProvider.php, line 176

Class

WebformEmailProvider
Manages and provides HTML email support.

Namespace

Drupal\webform

Code

public function getMailPluginDefinition() {
  $plugin_id = $this
    ->getMailPluginId();
  return $plugin_id && $this->mailManager
    ->hasDefinition($plugin_id) ? $this->mailManager
    ->getDefinition($plugin_id) : NULL;
}