RWMB_OEmbed_Field::get_attributes PHP Method

get_attributes() public static method

Get the attributes for a field
public static get_attributes ( array $field, mixed $value = null ) : array
$field array
$value mixed
return array
    public static function get_attributes($field, $value = null)
    {
        $attributes = parent::get_attributes($field, $value);
        $attributes['type'] = 'url';
        return $attributes;
    }