os2forms/os2forms_organisation

OS2Forms 组织

2.1.0 2024-09-12 08:14 UTC

README

安装

composer require os2forms/os2forms_organisation
drush pm:enable os2forms_organisation

/admin/os2forms_organisation/settings 上配置组织API端点。

注意 此模块创建并使用一个名为 field_organisation_user_id 的用户字段。使用方需要确保此字段设置为SF1500 组织 "用户" ID。如果没有,则不会显示任何内容。如果使用 OpenID Connect,请考虑使用 OS2Forms Organisation OpenID Connect 来设置此用户字段。

Drush 命令

drush os2forms_organisation:lookup --help

编码标准

docker run --rm --interactive --tty --volume ${PWD}:/app itkdev/php8.1-fpm:latest composer install
docker run --rm --interactive --tty --volume ${PWD}:/app itkdev/php8.1-fpm:latest composer coding-standards-check

docker run --rm --interactive --tty --volume ${PWD}:/app node:18 yarn --cwd /app install
docker run --rm --interactive --tty --volume ${PWD}:/app node:18 yarn --cwd /app coding-standards-check

代码分析

docker run --rm --interactive --tty --volume ${PWD}:/app itkdev/php8.1-fpm:latest composer install
docker run --rm --interactive --tty --volume ${PWD}:/app itkdev/php8.1-fpm:latest composer code-analysis