Maslosoft Framework Logo Maslosoft Framework Documentation
Flexible Application Foundation

Icon Annotation

Use this annotation to provide icon for models, actions, menus or whatever is suitable for.

It is preferred to use constants defining icons, be it those from Sprite project, FontAwesome or any others.

Example of annotation with constant:


Example of annotation with string value:


This annotation can be placed on class, method or property. It's usage is not really defined here. Any function using object with this annotation can benefit from it, but should not rely upon this annotation.

Values which are set by this annotation are not validated in any way, except that is should be string. For most sane usage, it should be CSS class.