+++ /dev/null
-{
- "title": "Contact Address(es)",
- "type": "block",
- "entity_type": "Contact",
- "join_entity": "Address"
-}
--- /dev/null
+<?php
+return [
+ 'title' => ts('Contact Address(es)'),
+ 'type' => 'block',
+ 'entity_type' => 'Contact',
+ 'join_entity' => 'Address',
+];
+++ /dev/null
-{
- "title": "Contact Email(s)",
- "type": "block",
- "entity_type": "Contact",
- "join_entity": "Email"
-}
--- /dev/null
+<?php
+return [
+ 'title' => ts('Contact Email(s)'),
+ 'type' => 'block',
+ 'entity_type' => 'Contact',
+ 'join_entity' => 'Email',
+];
+++ /dev/null
-{
- "title": "Contact IM(s)",
- "type": "block",
- "entity_type": "Contact",
- "join_entity": "IM"
-}
--- /dev/null
+<?php
+return [
+ 'title' => ts('Contact IM(s)'),
+ 'type' => 'block',
+ 'entity_type' => 'Contact',
+ 'join_entity' => 'IM',
+];
+++ /dev/null
-{
- "title": "Contact Note(s)",
- "type": "block",
- "entity_type": "Contact",
- "join_entity": "Note"
- }
-
\ No newline at end of file
--- /dev/null
+<?php
+return [
+ 'title' => ts('Contact Note(s)'),
+ 'type' => 'block',
+ 'entity_type' => 'Contact',
+ 'join_entity' => 'Note',
+];
+++ /dev/null
-{
- "title": "Contact Phone(s)",
- "type": "block",
- "entity_type": "Contact",
- "join_entity": "Phone"
-}
--- /dev/null
+<?php
+return [
+ 'title' => ts('Contact Phone(s)'),
+ 'type' => 'block',
+ 'entity_type' => 'Contact',
+ 'join_entity' => 'Phone',
+];
+++ /dev/null
-{
- "title": "Contact Website(s)",
- "type": "block",
- "entity_type": "Contact",
- "join_entity": "Website"
-}
--- /dev/null
+<?php
+return [
+ 'title' => ts('Contact Website(s)'),
+ 'type' => 'block',
+ 'entity_type' => 'Contact',
+ 'join_entity' => 'Website',
+];
+++ /dev/null
-{
- "title": "Household Name",
- "type": "block",
- "entity_type": "Household"
-}
--- /dev/null
+<?php
+return [
+ 'title' => ts('Household Name'),
+ 'type' => 'block',
+ 'entity_type' => 'Household',
+];
+++ /dev/null
-{
- "title": "Individual Name",
- "type": "block",
- "entity_type": "Individual"
-}
--- /dev/null
+<?php
+return [
+ 'title' => ts('Individual Name'),
+ 'type' => 'block',
+ 'entity_type' => 'Individual',
+];
+++ /dev/null
-{
- "title": "Organization Name",
- "type": "block",
- "entity_type": "Organization"
-}
--- /dev/null
+<?php
+return [
+ 'title' => ts('Organization Name'),
+ 'type' => 'block',
+ 'entity_type' => 'Organization',
+];
+++ /dev/null
-{
- "title": "Afform HTML Administration",
- "server_route": "civicrm/admin/afform-html",
- "permission": "administer CiviCRM"
-}
--- /dev/null
+<?php
+return [
+ 'title' => ts('Afform HTML Administration'),
+ 'server_route' => 'civicrm/admin/afform-html',
+ 'permission' => 'administer CiviCRM',
+];
+++ /dev/null
-{
- "server_route": "civicrm/afex",
- "requires":["mockFoo", "mockBareFile", "af"]
-}
--- /dev/null
+<?php
+return [
+ 'server_route' => 'civicrm/afex',
+ 'requires' => ['mockFoo', 'mockBareFile', 'af'],
+];
+++ /dev/null
-{
- "title": "Weird Name"
-}
--- /dev/null
+<?php
+return [
+ 'title' => ts('Weird Name'),
+];
--- /dev/null
+<?php
+return [];
+++ /dev/null
-{
- "server_route": "civicrm/mock-page",
- "requires": ["mockBespoke"],
- "permission": "access Foobar",
- "is_dashlet": true
-}
--- /dev/null
+<?php
+return [
+ 'server_route' => 'civicrm/mock-page',
+ 'requires' => ['mockBespoke'],
+ 'permission' => 'access Foobar',
+ 'is_dashlet' => TRUE,
+];
+++ /dev/null
-{
- "type": "form",
- "title": "My public form",
- "server_route": "civicrm/mock-public-form",
- "permission": "*always allow*",
- "is_token": true
-}
--- /dev/null
+<?php
+return [
+ 'type' => 'form',
+ 'title' => ts('My public form'),
+ 'server_route' => 'civicrm/mock-public-form',
+ 'permission' => '*always allow*',
+ 'is_token' => TRUE,
+];
+++ /dev/null
-{
- "server_route": "civicrm/test-afform",
- "title": "This is a test"
-}
--- /dev/null
+<?php
+return [
+ 'server_route' => 'civicrm/test-afform',
+ 'title' => ts('This is a test'),
+];
+++ /dev/null
-{
- "type": "search",
- "title": "TestContactEmailForm",
- "server_route": "",
- "permission": "access CiviCRM"
-}
--- /dev/null
+<?php
+return [
+ 'type' => 'search',
+ 'title' => ts('TestContactEmailForm'),
+ 'server_route' => '',
+ 'permission' => 'access CiviCRM',
+];
+++ /dev/null
-{
- "type": "search",
- "title": "TestMultipleSearchForm",
- "server_route": "",
- "permission": "access CiviCRM"
-}
--- /dev/null
+<?php
+return [
+ 'type' => 'search',
+ 'title' => ts('TestMultipleSearchForm'),
+ 'server_route' => '',
+ 'permission' => 'access CiviCRM',
+];
+++ /dev/null
-{
- "type": "search",
- "title": "Email Bounce History",
- "icon": "fa-list-alt",
- "server_route": "civicrm/contact/view/bounces",
- "permission": "access CiviCRM"
-}
--- /dev/null
+<?php
+return [
+ 'type' => 'search',
+ 'title' => ts('Email Bounce History'),
+ 'icon' => 'fa-list-alt',
+ 'server_route' => 'civicrm/contact/view/bounces',
+ 'permission' => 'access CiviCRM',
+];