This allows you to edit files using your favourite editor (IDE), and do version control with auto sync. Read more
*/
public bool $isFileSystemStorage;
/**
* @a-type tab
* @label Git repositories
* @a-pro The field must be not required or have default value!
*/
public bool $gitRepositoriesTab;
/**
* @var GitRepository[]
* @item \org\wplake\advanced_views\Groups\GitRepository
* @label Git Repositories
* @instructions By saving Views and Cards in your GitLab repository (free tariff), you can create your own library and reuse them on other websites.
Read more
* @button_label Add Repository
* @a-no-tab 1
* @layout block
* @a-pro The field must be not required or have default value!
*/
public array $gitRepositories;
/**
* @return array
*/
protected static function getLocationRules(): array
{
return [
[
'options_page == ' . SettingsPage::SLUG,
]
];
}
/**
* @return array
* @throws Exception
*/
public static function getGroupInfo(): array
{
$groupInfo = parent::getGroupInfo();
return array_merge($groupInfo, [
'title' => __('Settings', 'acf-views'),
'style' => 'seamless',
]);
}
}