* @since 3.7.0 * @since 4.0.0 Renamed from BlockAudioAttribute.php to BlockAttributes.php to support multiple attributes * @since 7.0.0 Refactored to BeyondWords namespace with snake_case methods. */ namespace BeyondWords\Editor\Components; /** * BlockAttributes * * @since 3.7.0 * @since 4.0.0 Renamed from BlockAudioAttribute to BlockAttributes to support multiple attributes. * @since 6.0.0 Stop adding beyondwordsMarker attribute to blocks. * @since 7.0.0 Refactored to BeyondWords namespace with snake_case methods. */ defined( 'ABSPATH' ) || exit; class BlockAttributes { /** * Block attribute holding the per-block language code (e.g. `en_GB`). * * @since 7.1.0 */ public const LANGUAGE_ATTRIBUTE = 'beyondwordsLanguageCode'; /** * Block attribute holding the per-block voice id, which also carries the model. * * @since 7.1.0 */ public const VOICE_ATTRIBUTE = 'beyondwordsVoiceId'; /** * The block whose `