* Translated text.
* @see ts
*/
- public static function ts($text, $params = []) {
+ public static function ts($text, $params = []): string {
if (!array_key_exists('domain', $params)) {
$params['domain'] = [self::LONG_NAME, NULL];
}
* Ex: 'http://example.org/sites/default/ext/org.example.foo'.
* Ex: 'http://example.org/sites/default/ext/org.example.foo/css/foo.css'.
*/
- public static function url($file = NULL) {
+ public static function url($file = NULL): string {
if ($file === NULL) {
return rtrim(CRM_Core_Resources::singleton()->getUrl(self::LONG_NAME), '/');
}
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_uninstall
*/
-function _afform_admin_civix_civicrm_uninstall() {
+function _afform_admin_civix_civicrm_uninstall(): void {
_afform_admin_civix_civicrm_config();
if ($upgrader = _afform_admin_civix_upgrader()) {
$upgrader->onUninstall();
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_enable
*/
-function _afform_admin_civix_civicrm_enable() {
+function _afform_admin_civix_civicrm_enable(): void {
_afform_admin_civix_civicrm_config();
if ($upgrader = _afform_admin_civix_upgrader()) {
if (is_callable([$upgrader, 'onEnable'])) {
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_disable
* @return mixed
*/
-function _afform_admin_civix_civicrm_disable() {
+function _afform_admin_civix_civicrm_disable(): void {
_afform_admin_civix_civicrm_config();
if ($upgrader = _afform_admin_civix_upgrader()) {
if (is_callable([$upgrader, 'onDisable'])) {
</requires>
<civix>
<namespace>CRM/AfformAdmin</namespace>
+ <format>22.10.0</format>
</civix>
<classloader>
<psr4 prefix="Civi\" path="Civi"/>
<mixins>
<mixin>ang-php@1.0.0</mixin>
<mixin>menu-xml@1.0.0</mixin>
- <mixin>mgd-php@1.1.0</mixin>
+ <mixin>mgd-php@1.0.0</mixin>
<mixin>afform-entity-php@1.0.0</mixin>
</mixins>
</extension>
* Translated text.
* @see ts
*/
- public static function ts($text, $params = []) {
+ public static function ts($text, $params = []): string {
if (!array_key_exists('domain', $params)) {
$params['domain'] = [self::LONG_NAME, NULL];
}
* Ex: 'http://example.org/sites/default/ext/org.example.foo'.
* Ex: 'http://example.org/sites/default/ext/org.example.foo/css/foo.css'.
*/
- public static function url($file = NULL) {
+ public static function url($file = NULL): string {
if ($file === NULL) {
return rtrim(CRM_Core_Resources::singleton()->getUrl(self::LONG_NAME), '/');
}
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_uninstall
*/
-function _afform_civix_civicrm_uninstall() {
+function _afform_civix_civicrm_uninstall(): void {
_afform_civix_civicrm_config();
if ($upgrader = _afform_civix_upgrader()) {
$upgrader->onUninstall();
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_enable
*/
-function _afform_civix_civicrm_enable() {
+function _afform_civix_civicrm_enable(): void {
_afform_civix_civicrm_config();
if ($upgrader = _afform_civix_upgrader()) {
if (is_callable([$upgrader, 'onEnable'])) {
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_disable
* @return mixed
*/
-function _afform_civix_civicrm_disable() {
+function _afform_civix_civicrm_disable(): void {
_afform_civix_civicrm_config();
if ($upgrader = _afform_civix_upgrader()) {
if (is_callable([$upgrader, 'onDisable'])) {
<comments>The Form Core extension is required to use any dynamic form. To administer and edit forms, also install the FormBuilder extension.</comments>
<civix>
<namespace>CRM/Afform</namespace>
+ <format>22.10.0</format>
</civix>
<classloader>
<psr0 prefix="CRM_" path=""/>
</requires>
<mixins>
<mixin>ang-php@1.0.0</mixin>
- <mixin>mgd-php@1.1.0</mixin>
+ <mixin>mgd-php@1.0.0</mixin>
<mixin>scan-classes@1.0.0</mixin>
</mixins>
</extension>
* Translated text.
* @see ts
*/
- public static function ts($text, $params = []) {
+ public static function ts($text, $params = []): string {
if (!array_key_exists('domain', $params)) {
$params['domain'] = [self::LONG_NAME, NULL];
}
* Ex: 'http://example.org/sites/default/ext/org.example.foo'.
* Ex: 'http://example.org/sites/default/ext/org.example.foo/css/foo.css'.
*/
- public static function url($file = NULL) {
+ public static function url($file = NULL): string {
if ($file === NULL) {
return rtrim(CRM_Core_Resources::singleton()->getUrl(self::LONG_NAME), '/');
}
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_uninstall
*/
-function _afform_html_civix_civicrm_uninstall() {
+function _afform_html_civix_civicrm_uninstall(): void {
_afform_html_civix_civicrm_config();
if ($upgrader = _afform_html_civix_upgrader()) {
$upgrader->onUninstall();
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_enable
*/
-function _afform_html_civix_civicrm_enable() {
+function _afform_html_civix_civicrm_enable(): void {
_afform_html_civix_civicrm_config();
if ($upgrader = _afform_html_civix_upgrader()) {
if (is_callable([$upgrader, 'onEnable'])) {
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_disable
* @return mixed
*/
-function _afform_html_civix_civicrm_disable() {
+function _afform_html_civix_civicrm_disable(): void {
_afform_html_civix_civicrm_config();
if ($upgrader = _afform_html_civix_upgrader()) {
if (is_callable([$upgrader, 'onDisable'])) {
</mixins>
<civix>
<namespace>CRM/AfformHtml</namespace>
+ <format>22.10.0</format>
</civix>
</extension>
* Translated text.
* @see ts
*/
- public static function ts($text, $params = []) {
+ public static function ts($text, $params = []): string {
if (!array_key_exists('domain', $params)) {
$params['domain'] = [self::LONG_NAME, NULL];
}
* Ex: 'http://example.org/sites/default/ext/org.example.foo'.
* Ex: 'http://example.org/sites/default/ext/org.example.foo/css/foo.css'.
*/
- public static function url($file = NULL) {
+ public static function url($file = NULL): string {
if ($file === NULL) {
return rtrim(CRM_Core_Resources::singleton()->getUrl(self::LONG_NAME), '/');
}
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_uninstall
*/
-function _afform_mock_civix_civicrm_uninstall() {
+function _afform_mock_civix_civicrm_uninstall(): void {
_afform_mock_civix_civicrm_config();
if ($upgrader = _afform_mock_civix_upgrader()) {
$upgrader->onUninstall();
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_enable
*/
-function _afform_mock_civix_civicrm_enable() {
+function _afform_mock_civix_civicrm_enable(): void {
_afform_mock_civix_civicrm_config();
if ($upgrader = _afform_mock_civix_upgrader()) {
if (is_callable([$upgrader, 'onEnable'])) {
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_disable
* @return mixed
*/
-function _afform_mock_civix_civicrm_disable() {
+function _afform_mock_civix_civicrm_disable(): void {
_afform_mock_civix_civicrm_config();
if ($upgrader = _afform_mock_civix_upgrader()) {
if (is_callable([$upgrader, 'onDisable'])) {
</mixins>
<civix>
<namespace>CRM/AfformMock</namespace>
+ <format>22.10.0</format>
</civix>
</extension>