'; return [ 'id' => uniqid(), 'type' => self::$type, 'name' => __( 'Video', 'yaymail' ), 'icon' => self::$icon, 'group' => 'basic', 'available' => true, 'position' => 100, 'data' => [ 'container_group_definition' => [ 'component' => 'GroupDefinition', 'title' => __( 'Container settings', 'yaymail' ), 'description' => __( 'Handle container layout settings', 'yaymail' ), ], 'padding' => [ 'value_path' => 'padding', 'component' => 'Spacing', 'title' => __( 'Padding', 'yaymail' ), 'default_value' => isset( $attributes['padding'] ) ? $attributes['padding'] : [ 'top' => '15', 'right' => '50', 'bottom' => '15', 'left' => '50', ], 'type' => 'style', ], 'background_color' => [ 'value_path' => 'background_color', 'component' => 'Color', 'title' => __( 'Background color', 'yaymail' ), 'default_value' => isset( $attributes['background_color'] ) ? $attributes['background_color'] : '#fff', 'type' => 'style', ], 'content_breaker' => [ 'component' => 'LineBreaker', ], 'content_group_definition' => [ 'component' => 'GroupDefinition', 'title' => __( 'Content settings', 'yaymail' ), 'description' => __( 'Handle content settings', 'yaymail' ), ], 'src' => [ 'value_path' => 'src', 'component' => 'Media', 'title' => __( 'Thumbnail', 'yaymail' ), 'default_value' => isset( $attributes['src'] ) ? $attributes['src'] : $default_src, 'type' => 'content', ], 'width' => [ 'value_path' => 'width', 'component' => 'Dimension', 'title' => __( 'Width', 'yaymail' ), 'default_value' => isset( $attributes['width'] ) ? $attributes['width'] : '400', 'type' => 'style', ], 'height' => [ 'value_path' => 'height', 'component' => 'Dimension', 'title' => __( 'Height', 'yaymail' ), 'default_value' => isset( $attributes['height'] ) ? $attributes['height'] : '400', 'type' => 'style', ], 'url' => [ 'value_path' => 'url', 'component' => 'Media', 'title' => __( 'Video URL', 'yaymail' ), 'default_value' => isset( $attributes['url'] ) ? $attributes['url'] : '#', 'media_type' => 'video', 'button_title' => __( 'Change video', 'yaymail' ), 'show_preview' => false, 'type' => 'content', ], ], ]; } }