protected function MessageType::messageTypeOptions in Better Messages 8
Retrieve a list of known message types.
Return value
array Array of known message types. Keys are their machine names whereas values are the corresponding human friendly labels
2 calls to MessageType::messageTypeOptions()
- MessageType::buildConfigurationForm in src/
Plugin/ Condition/ MessageType.php - Form constructor.
- MessageType::summary in src/
Plugin/ Condition/ MessageType.php - Provides a human readable summary of the condition's configuration.
File
- src/
Plugin/ Condition/ MessageType.php, line 84
Class
- MessageType
- Provides a 'Message type' condition.
Namespace
Drupal\better_messages\Plugin\ConditionCode
protected function messageTypeOptions() {
return [
'status' => $this
->t('Status'),
'warning' => $this
->t('Warning'),
'error' => $this
->t('Error'),
];
}