You are here

public function MessageType::summary in Better Messages 8

Provides a human readable summary of the condition's configuration.

Overrides ConditionInterface::summary

File

src/Plugin/Condition/MessageType.php, line 63

Class

MessageType
Provides a 'Message type' condition.

Namespace

Drupal\better_messages\Plugin\Condition

Code

public function summary() {
  $message_labels = array_intersect_key($this
    ->messageTypeOptions(), array_combine($this->configuration['message_types'], $this->configuration['message_types']));
  return implode(', ', $message_labels);
}