Contao\Message::getTypes PHP Method

getTypes() public static method

Return all available message types
public static getTypes ( ) : array
return array An array of message types
    public static function getTypes()
    {
        return array('TL_ERROR', 'TL_CONFIRM', 'TL_NEW', 'TL_INFO', 'TL_RAW');
    }

Usage Example

Example #1
0
 /**
  * Return all available message types
  *
  * @return array An array of message types
  *
  * @deprecated Deprecated since Contao 4.0, to be removed in Contao 5.0.
  *             Use Message::getTypes() instead.
  */
 protected function getMessageTypes()
 {
     @trigger_error('Using System::getMessageTypes() has been deprecated and will no longer work in Contao 5.0. Use Message::getTypes() instead.', E_USER_DEPRECATED);
     return \Message::getTypes();
 }