<?php

    return [
        "type"           => "mediavideos",
        "model"          => App\Models\MediaVideo::class,
        "label"          => "Vídeos de media",
        "label_singular" => "Vídeo de media",
        "hierarchic"     => FALSE,
        "group"          => "taxonomias",
        "order"          => TRUE,
        "fields"         => [
            [
                "name"          => "title",
                "label"         => "Título do vídeo",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
                "name"          => "link",
                "label"         => "Link do Vimeo",
                "type"          => "link",
                "maxLabel"      => 150,
                "multiLanguage" => FALSE,
                "objectTypes"   => [
                    'videos'
                ]
            ],
            [
                "name"      => "date",
                "label"     => "Data",
                "type"      => "datePicker",
                "inputType" => "date",
                "inList"    => TRUE,
                "search"    => TRUE,
                "sort"      => TRUE
            ],
        ],
        "actions"        => [
            "order", "preview"
        ]
    ];
