This module provides a Form API element to select a Media entity from the Media Library. This element can be used in all standalone forms. The implementation is borrowed from the Media Library widget.
- You can limit the allowed types by passing the machine names of those Media types
- The default value is either NULL or a single Media entity's ID.