Rename the Plan bundle to Program across config, routes, menus, and controllers (Plan -> Initiative), bump version to 0.16.0, and introduce new audience and UTM taxonomy routes and permissions to support the expanded Programs feature set.
30 lines
697 B
PHP
30 lines
697 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace MauticPlugin\ProgramBundle\Entity;
|
|
|
|
/**
|
|
* How important an initiative's audience is to the initiative. The order of the cases is the order of the dropdown.
|
|
*/
|
|
enum AudiencePriority: string
|
|
{
|
|
case Primary = 'primary';
|
|
case Secondary = 'secondary';
|
|
case Exclusion = 'exclusion';
|
|
|
|
public function getLabelKey(): string
|
|
{
|
|
return 'mautic.program.audience.priority.'.$this->value;
|
|
}
|
|
|
|
public function getLabelClass(): string
|
|
{
|
|
return match ($this) {
|
|
self::Primary => 'label-success',
|
|
self::Secondary => 'label-info',
|
|
self::Exclusion => 'label-danger',
|
|
};
|
|
}
|
|
}
|