<?php
return array(
    "type" => "link_group",
    "model" => "App\Models\LinkGroup",
    "label" => "Links Group",
    "label_singular" => "Link Group",
    "template" => false,
    "order" => false,
    "group" => "none",
    "parent" => array(
        "field" => "block_id",
        "contentType" => "block"
    ),
    "shareable" => "none",
    "fields" => array(
        array(
            "name" => "title",
            "label" => "title",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:255",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "cta",
            "label" => "Call to action (button or link)",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 44,
        ),
        array(
            "name" => "links",
            "label" => "Links",
            "type" => "singlePicker",
            "objectType" => "link",
            "pivotTable" => "link_link_group",
            "order" => true,
        ),
    ),
    "actions" => array(
        "insert", "edit", "delete"
    )
);
