Compare commits

..

28 Commits

Author SHA1 Message Date
86c0fb1f65 case fee total updates when a fee is updated 2022-04-21 12:20:22 +01:00
92bce34fb1 total fee updates when a case fee is deleted 2022-04-21 12:15:00 +01:00
02715bdc44 Total fee now updates when a new fee is added 2022-04-21 12:11:56 +01:00
4ab621100f Merge branch 'master' into alex 2022-04-21 09:03:11 +01:00
aa0c350766 Added links to admin menu for managing taxonomies 2022-04-21 08:51:42 +01:00
17406061f9 commented out the yml line untill it works 2022-04-17 12:04:48 +02:00
489f4c0c94 made fields configurable for case and sub cases 2022-04-17 11:52:26 +02:00
2f06caa261 made EqualOpps fields configurable 2022-04-15 16:48:34 +02:00
aa6d580d62 made event fields configurable 2022-04-15 16:44:59 +02:00
8c3f2bcbc3 made org fields configurable 2022-04-15 16:41:59 +02:00
55f34cb4d7 Added the seeAllEvents but it is not workgin do to a bug I can't seem to fin 2022-04-15 16:29:26 +02:00
20ed3d4f39 added see al org's page and menu item, made fields configurable for actor 2022-04-08 14:00:44 +02:00
b85cbaf398 Added actor type links to see-all menu 2022-04-08 12:02:53 +01:00
34b7a1c7c9 fixed redirect after deleting activity - defaults to target if there's no case 2022-04-03 19:27:43 +01:00
fb2249d9bd fixed event attendees widget 2022-04-03 19:12:03 +01:00
614293c114 Added case provider role to opencase config 2022-04-03 17:52:12 +01:00
167166b898 Added target field to case, and added fee category vocab to opencase config 2022-04-03 17:31:00 +01:00
c3f802835f Made everything have revisions all the time 2022-04-03 17:01:19 +01:00
13ddf5aa13 fixed deprecated functions 2022-04-03 14:51:38 +01:00
225e92a51c Added target field to activity 2022-04-03 14:37:40 +01:00
60c64afcab removed config from opencase_defaults 2022-04-03 14:19:05 +01:00
49ab81ca23 fixed deprecated functions that were breaking revisions. 2022-04-03 13:39:01 +01:00
65fe65474e replaced deprecated function 2022-03-17 10:41:39 +00:00
57fae7c1c3 Removed full name field, thus fixing name-not-changing bug 2022-03-17 10:52:40 +01:00
cc551b0851 Added Provider field to cases, auto-completed from actor linked to logged-in user. DB update required 2022-01-21 15:00:26 +00:00
40435a16be Merge branch 'master' of ssh://git.autonomic.zone:2222/autonomic-cooperative/opencase 2022-01-20 15:59:39 +00:00
f783fa2373 removed commented-out code 2022-01-20 15:59:23 +00:00
8b725e5a9a removed commented-out code 2022-01-20 15:42:37 +00:00
183 changed files with 670 additions and 5785 deletions

View File

@ -0,0 +1,8 @@
uuid: 85aacc47-8df9-4309-b7f4-f58be70f83d0
langcode: en
status: true
dependencies: { }
name: 'Case Provider Roles'
vid: oc_case_provider_role
description: ''
weight: 0

View File

@ -0,0 +1,8 @@
uuid: 93a96bb4-da95-4d69-be37-d1477624f849
langcode: en
status: true
dependencies: { }
name: 'Fee categories'
vid: oc_fee_category
description: ''
weight: 0

View File

@ -1,4 +1,20 @@
<?php
use \Drupal\Core\Field\BaseFieldDefinition;
function opencase_cases_update_90002() {
$field_storage_definition = BaseFieldDefinition::create('entity_reference')
->setLabel(t('Target'))
->setRevisionable(TRUE)
->setSetting('target_type', 'oc_actor')
->setSetting('handler', 'default')
->setDefaultValueCallback('\Drupal\opencase_cases\Entity\OCCase::defaultTarget')
->setDisplayConfigurable('form', true)
->setDisplayConfigurable('view', true);
\Drupal::entityDefinitionUpdateManager()
->installFieldStorageDefinition('oc_target', 'oc_case', 'opencase_cases', $field_storage_definition);
}
function opencase_cases_update_8025() {
//check if the table exists first. If not, then create the entity.
@ -10,7 +26,7 @@ function opencase_cases_update_8025() {
}
function opencase_cases_update_8026() {
$storage_definition = \Drupal\Core\Field\BaseFieldDefinition::create('entity_reference')
$storage_definition = BaseFieldDefinition::create('entity_reference')
->setLabel(t('Role'))
->setSetting('target_type', 'taxonomy_term')
->setSetting('handler_settings', ['target_bundles' => ['oc_case_provider_role' => 'oc_case_provider_role']])

View File

@ -7,6 +7,9 @@ declare(strict_types = 1);
*/
use Drupal\Core\Routing\RouteMatchInterface;
use PHPUnit\Framework\Constraint\IsEmpty;
use function PHPUnit\Framework\isEmpty;
/**
* Implements hook_help().
@ -93,35 +96,19 @@ function opencase_cases_get_activities(Drupal\opencase_cases\entity\OCCase $case
return $activities;
}
function opencase_cases_get_amount(Drupal\opencase_cases\entity\OCCaseFee $case_fee): string {
return $case_fee->amount->first()->value;
}
function opencase_cases_get_case(Drupal\opencase_cases\entity\OCCaseFee $case_fee): Drupal\opencase_cases\entity\OCCase {
return $case_fee->oc_case->referencedEntities()[0];
}
function opencase_cases_update_total_fee_for_case_belonging_to_case_fee(Drupal\opencase_cases\entity\OCCaseFee $case_fee): void {
$total = 0;
$case = opencase_cases_get_case($case_fee);
$case_fees = opencase_cases_get_case_fees($case);
foreach($case_fees as $case_fee) {
$total += opencase_cases_get_amount($case_fee);
}
$case->set('total_fee', $total);
$case->save();
}
function opencase_cases_oc_case_fee_update(Drupal\opencase_cases\entity\OCCaseFee $case_fee): void {
opencase_cases_update_total_fee_for_case_belonging_to_case_fee($case_fee);
$case = $case_fee->getCase();
$case->addToTotalFee($case_fee->amount->value - $case_fee->original->amount->value);
}
function opencase_cases_oc_case_fee_insert(Drupal\opencase_cases\entity\OCCaseFee $case_fee): void {
opencase_cases_update_total_fee_for_case_belonging_to_case_fee($case_fee);
$case = $case_fee->getCase();
$case->addToTotalFee($case_fee->amount->value);
}
function opencase_cases_oc_case_fee_delete(Drupal\opencase_cases\entity\OCCaseFee $case_fee): void {
opencase_cases_update_total_fee_for_case_belonging_to_case_fee($case_fee);
$case = $case_fee->getCase();
$case->addToTotalFee(0 - $case_fee->amount->value);
}
function opencase_cases_entity_base_field_info($entity_type) {
@ -180,9 +167,16 @@ function opencase_cases_form_alter(&$form, &$form_state, $form_id) {
function _opencase_cases_redirect_to_home($form, &$form_state) {
$form_state->setRedirect('<front>');
}
// Upon deletion of an activity, go to the related case if there is one, otherwise to its target.
function _opencase_cases_delete_activity_redirect($form, &$form_state) {
$case_id = $form_state->getFormObject()->getEntity()->oc_case->target_id;
$form_state->setRedirect('entity.oc_case.canonical', ['oc_case' => $case_id]);
if (!IsEmpty($form_state->getFormObject()->getEntity()->oc_case)) {
$case_id = $form_state->getFormObject()->getEntity()->oc_case->target_id;
$form_state->setRedirect('entity.oc_case.canonical', ['oc_case' => $case_id]);
} else {
$target_actor_id = $form_state->getFormObject()->getEntity()->oc_target->target_id;
$form_state->setRedirect('entity.oc_actor.canonical', ['oc_actor' => $target_actor_id]);
}
}
/**
* Implements hook_theme_suggestions_HOOK().
@ -200,35 +194,6 @@ function opencase_cases_theme_suggestions_oc_case(array $variables) {
return $suggestions;
}
//function opencase_views_query_alter(Drupal\views\ViewExecutable $view, $query) {
// if ($view->getBaseEntityType() && $view->getBaseEntityType()->id() == 'oc_case') {
// $query->addTag('oc_case_access');
// }
// if ($view->getBaseEntityType() && $view->getBaseEntityType()->id() == 'oc_activity') {
// $query->addTag('oc_activity_access');
// }
//}
//
//function opencase_query_oc_case_access_alter($query) {
// if (\Drupal::currentUser()->hasPermission('view published case entities')) {
// return;
// }
// $linked_actor_id = CaseInvolvement::getLinkedActorId(\Drupal::currentUser());
// $query->addJoin('INNER', 'oc_case__actors_involved', 'access_filter', 'access_filter.entity_id = oc_case_field_data.id');
// $query->condition('access_filter.actors_involved_target_id', $linked_actor_id);
//}
//
//function opencase_query_oc_activity_access_alter($query) {
// if (\Drupal::currentUser()->hasPermission('view published case entities')) {
// return;
// }
// $linked_actor_id = CaseInvolvement::getLinkedActorId(\Drupal::currentUser());
// $query->addJoin('INNER', 'oc_case__actors_involved', 'access_filter', 'access_filter.entity_id = oc_activity_field_data.oc_case');
// $query->condition('access_filter.actors_involved_target_id', $linked_actor_id);
//}
/**
* Implements hook_theme_suggestions_HOOK().
*/

View File

@ -25,8 +25,8 @@ class OCCaseController extends ControllerBase implements ContainerInjectionInter
* An array suitable for drupal_render().
*/
public function revisionShow($oc_case_revision) {
$oc_case = $this->entityManager()->getStorage('oc_case')->loadRevision($oc_case_revision);
$view_builder = $this->entityManager()->getViewBuilder('oc_case');
$oc_case = $this->entityTypeManager()->getStorage('oc_case')->loadRevision($oc_case_revision);
$view_builder = $this->entityTypeManager()->getViewBuilder('oc_case');
return $view_builder->view($oc_case);
}
@ -41,8 +41,10 @@ class OCCaseController extends ControllerBase implements ContainerInjectionInter
* The page title.
*/
public function revisionPageTitle($oc_case_revision) {
$oc_case = $this->entityManager()->getStorage('oc_case')->loadRevision($oc_case_revision);
return $this->t('Revision of %title from %date', ['%title' => $oc_case->label(), '%date' => format_date($oc_case->getRevisionCreationTime())]);
$oc_case = $this->entityTypeManager()->getStorage('oc_case')->loadRevision($oc_case_revision);
$date = \Drupal::service('date.formatter')->format($oc_case->getRevisionCreationTime());
return $this->t('Revision of %title from %date', ['%title' => $oc_case->label(), '%date' => $date]);
}
/**
@ -60,7 +62,7 @@ class OCCaseController extends ControllerBase implements ContainerInjectionInter
$langname = $oc_case->language()->getName();
$languages = $oc_case->getTranslationLanguages();
$has_translations = (count($languages) > 1);
$oc_case_storage = $this->entityManager()->getStorage('oc_case');
$oc_case_storage = $this->entityTypeManager()->getStorage('oc_case');
$build['#title'] = $has_translations ? $this->t('@langname revisions for %title', ['@langname' => $langname, '%title' => $oc_case->label()]) : $this->t('Revisions for %title', ['%title' => $oc_case->label()]);
$header = [$this->t('Revision'), $this->t('Operations')];
@ -88,10 +90,11 @@ class OCCaseController extends ControllerBase implements ContainerInjectionInter
// Use revision link to link to revisions that are not active.
$date = \Drupal::service('date.formatter')->format($revision->getRevisionCreationTime(), 'short');
if ($vid != $oc_case->getRevisionId()) {
$link = $this->l($date, new Url('entity.oc_case.revision', ['oc_case' => $oc_case->id(), 'oc_case_revision' => $vid]));
$url = new Url('entity.oc_case.revision', ['oc_case' => $oc_case->id(), 'oc_case_revision' => $vid]);
$link = \Drupal\Core\Link::fromTextAndUrl($date, $url)->toString();
}
else {
$link = $oc_case->link($date);
$link = $oc_case->toLink($date)->toString();
}
$row = [];

View File

@ -118,13 +118,14 @@ class OCCaseFeeController extends ControllerBase implements ContainerInjectionIn
// Use revision link to link to revisions that are not active.
$date = $this->dateFormatter->format($revision->getRevisionCreationTime(), 'short');
if ($vid != $oc_case_fee->getRevisionId()) {
$link = $this->l($date, new Url('entity.oc_case_fee.revision', [
$url = new Url('entity.oc_case_fee.revision', [
'oc_case_fee' => $oc_case_fee->id(),
'oc_case_fee_revision' => $vid,
]));
]);
$link = \Drupal\Core\Link::fromTextAndUrl($date, $url)->toString();
}
else {
$link = $oc_case_fee->link($date);
$link = $oc_case_fee->toLink($date)->toString();
}
$row = [];

View File

@ -118,13 +118,14 @@ class OCCaseProvisionController extends ControllerBase implements ContainerInjec
// Use revision link to link to revisions that are not active.
$date = $this->dateFormatter->format($revision->getRevisionCreationTime(), 'short');
if ($vid != $oc_case_provision->getRevisionId()) {
$link = $this->l($date, new Url('entity.oc_case_provision.revision', [
$url = new Url('entity.oc_case_provision.revision', [
'oc_case_provision' => $oc_case_provision->id(),
'oc_case_provision_revision' => $vid,
]));
]);
$link = \Drupal\Core\Link::fromTextAndUrl($date, $url)->toString();
}
else {
$link = $oc_case_provision->link($date);
$link = $oc_case_provision->toLink($date)->toString();
}
$row = [];

View File

@ -75,30 +75,39 @@ use Drupal\user\UserInterface;
* field_ui_base_route = "entity.oc_case_type.edit_form"
* )
*/
class OCCase extends RevisionableContentEntityBase implements OCCaseInterface {
class OCCase extends RevisionableContentEntityBase implements OCCaseInterface
{
use EntityChangedTrait;
/**
* {@inheritdoc}
*/
public static function preCreate(EntityStorageInterface $storage_controller, array &$values) {
public static function preCreate(EntityStorageInterface $storage_controller, array &$values)
{
parent::preCreate($storage_controller, $values);
$values += [
'user_id' => \Drupal::currentUser()->id(),
];
}
public static function defaultTarget()
{
if (opencase_entities_get('target_id')) return [opencase_entities_get('target_id')];
else return [];
}
/**
* {@inheritdoc}
*/
protected function urlRouteParameters($rel) {
protected function urlRouteParameters($rel)
{
$uri_route_parameters = parent::urlRouteParameters($rel);
if ($rel === 'revision_revert' && $this instanceof RevisionableInterface) {
$uri_route_parameters[$this->getEntityTypeId() . '_revision'] = $this->getRevisionId();
}
elseif ($rel === 'revision_delete' && $this instanceof RevisionableInterface) {
} elseif ($rel === 'revision_delete' && $this instanceof RevisionableInterface) {
$uri_route_parameters[$this->getEntityTypeId() . '_revision'] = $this->getRevisionId();
}
@ -108,7 +117,8 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface {
/**
* {@inheritdoc}
*/
public function preSave(EntityStorageInterface $storage) {
public function preSave(EntityStorageInterface $storage)
{
parent::preSave($storage);
foreach (array_keys($this->getTranslationLanguages()) as $langcode) {
@ -130,14 +140,16 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface {
/**
* {@inheritdoc}
*/
public function getName() {
public function getName()
{
return $this->get('name')->value;
}
/**
* {@inheritdoc}
*/
public function setName($name) {
public function setName($name)
{
$this->set('name', $name);
return $this;
}
@ -145,14 +157,16 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface {
/**
* {@inheritdoc}
*/
public function getCreatedTime() {
public function getCreatedTime()
{
return $this->get('created')->value;
}
/**
* {@inheritdoc}
*/
public function setCreatedTime($timestamp) {
public function setCreatedTime($timestamp)
{
$this->set('created', $timestamp);
return $this;
}
@ -160,21 +174,24 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface {
/**
* {@inheritdoc}
*/
public function getOwner() {
public function getOwner()
{
return $this->get('user_id')->entity;
}
/**
* {@inheritdoc}
*/
public function getOwnerId() {
public function getOwnerId()
{
return $this->get('user_id')->target_id;
}
/**
* {@inheritdoc}
*/
public function setOwnerId($uid) {
public function setOwnerId($uid)
{
$this->set('user_id', $uid);
return $this;
}
@ -182,7 +199,8 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface {
/**
* {@inheritdoc}
*/
public function setOwner(UserInterface $account) {
public function setOwner(UserInterface $account)
{
$this->set('user_id', $account->id());
return $this;
}
@ -190,22 +208,30 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface {
/**
* {@inheritdoc}
*/
public function isPublished() {
return (bool) $this->getEntityKey('status');
public function isPublished()
{
return (bool)$this->getEntityKey('status');
}
/**
* {@inheritdoc}
*/
public function setPublished($published) {
public function setPublished($published)
{
$this->set('status', $published ? TRUE : FALSE);
return $this;
}
public function addToTotalFee(float $amountToAdd): void {
$this->set('total_fee', $this->total_fee->value + $amountToAdd);
$this->save();
}
/**
* {@inheritdoc}
*/
public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
public static function baseFieldDefinitions(EntityTypeInterface $entity_type)
{
$fields = parent::baseFieldDefinitions($entity_type);
// not currently used. Will add form and view settings when ready
@ -213,7 +239,8 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface {
->setLabel(t('Visible'))
->setDescription('If this box is not ticked this record will be hidden from view for most users. Users with access to unpublished entities will be able to restore it if needed.')
->setRevisionable(TRUE)
->setDisplayConfigurable("form", TRUE)
->setDisplayConfigurable('form', true)
->setDisplayConfigurable('view', true)
->setDefaultValue(TRUE);
$fields['user_id'] = BaseFieldDefinition::create('entity_reference')
@ -224,12 +251,18 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface {
->setSetting('handler', 'default')
->setTranslatable(TRUE)
->setDisplayConfigurable('form', true)
->setDisplayConfigurable('view', true)
->setDisplayOptions('view', [
'label' => 'above',
'type' => 'author',
'weight' => 80,
]);
->setDisplayConfigurable('view', true);
$fields['oc_target'] = BaseFieldDefinition::create('entity_reference')
->setLabel(t('Target'))
->setRevisionable(TRUE)
->setSetting('target_type', 'oc_actor')
->setSetting('handler', 'default')
->setDefaultValueCallback('\Drupal\opencase_cases\Entity\OCCase::defaultTarget')
->setDisplayConfigurable('form', true)
->setDisplayConfigurable('view', true);
$fields['name'] = BaseFieldDefinition::create('string')
->setLabel(t('Title'))
->setRevisionable(TRUE)
@ -238,14 +271,8 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface {
'text_processing' => 0,
])
->setDefaultValue('')
->setDisplayOptions('view', [
'label' => 'hidden',
'type' => 'string',
])
->setDisplayOptions('form', [
'type' => 'string_textfield',
'weight' => -100,
])
->setDisplayConfigurable('form', true)
->setDisplayConfigurable('view', true)
->setRequired(TRUE);
@ -259,18 +286,7 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface {
->setSetting('uri_scheme', 'private')
->setCardinality(-1)
->setDisplayConfigurable('form', true)
->setDisplayConfigurable('view', true)
->setDisplayOptions('form', [
'type' => 'file_generic',
'weight' => -1,
'settings' => [
'progress_indicator' => 'throbber',
],
])
->setDisplayOptions('view', [
'label' => 'above',
'settings' => ['use_description_as_link_text' => 'true']
]);
->setDisplayConfigurable('view', true);
$fields['created'] = BaseFieldDefinition::create('created')
->setLabel(t('Created on'))
@ -302,12 +318,13 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface {
$fields['total_fee'] = BaseFieldDefinition::create('decimal')
->setLabel(t('Total Fee'))
->setRevisionable(TRUE)
->setSettings([
'prefix' => '£',
])
->SetDisplayConfigurable("view", true);
->setLabel(t('Total Fee'))
->setRevisionable(TRUE)
->setSettings([
'prefix' => '£',
])
->setDisplayConfigurable('form', true)
->setDisplayConfigurable('view', true);
return $fields;
}

View File

@ -190,6 +190,10 @@ class OCCaseFee extends EditorialContentEntityBase implements OCCaseFeeInterface
return $this;
}
public function getCase():\Drupal\opencase_cases\Entity\OCCase {
return \Drupal\opencase_cases\Entity\OCCase::load($this->oc_case->target_id);
}
/**
* {@inheritdoc}
*/
@ -206,21 +210,6 @@ class OCCaseFee extends EditorialContentEntityBase implements OCCaseFeeInterface
->setSetting('target_type', 'user')
->setSetting('handler', 'default')
->setTranslatable(TRUE)
->setDisplayOptions('view', [
'label' => 'hidden',
'type' => 'author',
'weight' => 0,
])
->setDisplayOptions('form', [
'type' => 'entity_reference_autocomplete',
'weight' => 5,
'settings' => [
'match_operator' => 'CONTAINS',
'size' => '60',
'autocomplete_type' => 'tags',
'placeholder' => '',
],
])
->setDisplayConfigurable('form', TRUE)
->setDisplayConfigurable('view', TRUE);
@ -233,15 +222,6 @@ class OCCaseFee extends EditorialContentEntityBase implements OCCaseFeeInterface
'text_processing' => 0,
])
->setDefaultValue('')
->setDisplayOptions('view', [
'label' => 'above',
'type' => 'string',
'weight' => -4,
])
->setDisplayOptions('form', [
'type' => 'string_textfield',
'weight' => -4,
])
->setDisplayConfigurable('form', TRUE)
->setDisplayConfigurable('view', TRUE)
->setRequired(TRUE);
@ -272,10 +252,8 @@ class OCCaseFee extends EditorialContentEntityBase implements OCCaseFeeInterface
->setTranslatable(TRUE)
->setCardinality(1)
->setDefaultValueCallback('opencase_cases_default_case_id') // defined in opencase_cases.module
->setDisplayOptions('view', [
'type' => 'string',
'weight' => 0,
])
->setDisplayConfigurable("view", true)
->setDisplayConfigurable("form", true)
->setRequired(TRUE);
$fields['oc_fee_category'] = \Drupal\Core\Field\BaseFieldDefinition::create('entity_reference')

View File

@ -77,7 +77,8 @@ use Drupal\user\UserInterface;
* field_ui_base_route = "entity.oc_case_provision_type.edit_form"
* )
*/
class OCCaseProvision extends EditorialContentEntityBase implements OCCaseProvisionInterface {
class OCCaseProvision extends EditorialContentEntityBase implements OCCaseProvisionInterface
{
use EntityChangedTrait;
use EntityPublishedTrait;
@ -85,7 +86,8 @@ class OCCaseProvision extends EditorialContentEntityBase implements OCCaseProvis
/**
* {@inheritdoc}
*/
public static function preCreate(EntityStorageInterface $storage_controller, array &$values) {
public static function preCreate(EntityStorageInterface $storage_controller, array &$values)
{
parent::preCreate($storage_controller, $values);
$values += [
'user_id' => \Drupal::currentUser()->id(),
@ -95,13 +97,13 @@ class OCCaseProvision extends EditorialContentEntityBase implements OCCaseProvis
/**
* {@inheritdoc}
*/
protected function urlRouteParameters($rel) {
protected function urlRouteParameters($rel)
{
$uri_route_parameters = parent::urlRouteParameters($rel);
if ($rel === 'revision_revert' && $this instanceof RevisionableInterface) {
$uri_route_parameters[$this->getEntityTypeId() . '_revision'] = $this->getRevisionId();
}
elseif ($rel === 'revision_delete' && $this instanceof RevisionableInterface) {
} elseif ($rel === 'revision_delete' && $this instanceof RevisionableInterface) {
$uri_route_parameters[$this->getEntityTypeId() . '_revision'] = $this->getRevisionId();
}
@ -111,7 +113,8 @@ class OCCaseProvision extends EditorialContentEntityBase implements OCCaseProvis
/**
* {@inheritdoc}
*/
public function preSave(EntityStorageInterface $storage) {
public function preSave(EntityStorageInterface $storage)
{
parent::preSave($storage);
foreach (array_keys($this->getTranslationLanguages()) as $langcode) {
@ -133,14 +136,16 @@ class OCCaseProvision extends EditorialContentEntityBase implements OCCaseProvis
/**
* {@inheritdoc}
*/
public function getName() {
public function getName()
{
return $this->get('name')->value;
}
/**
* {@inheritdoc}
*/
public function setName($name) {
public function setName($name)
{
$this->set('name', $name);
return $this;
}
@ -148,14 +153,16 @@ class OCCaseProvision extends EditorialContentEntityBase implements OCCaseProvis
/**
* {@inheritdoc}
*/
public function getCreatedTime() {
public function getCreatedTime()
{
return $this->get('created')->value;
}
/**
* {@inheritdoc}
*/
public function setCreatedTime($timestamp) {
public function setCreatedTime($timestamp)
{
$this->set('created', $timestamp);
return $this;
}
@ -163,21 +170,24 @@ class OCCaseProvision extends EditorialContentEntityBase implements OCCaseProvis
/**
* {@inheritdoc}
*/
public function getOwner() {
public function getOwner()
{
return $this->get('user_id')->entity;
}
/**
* {@inheritdoc}
*/
public function getOwnerId() {
public function getOwnerId()
{
return $this->get('user_id')->target_id;
}
/**
* {@inheritdoc}
*/
public function setOwnerId($uid) {
public function setOwnerId($uid)
{
$this->set('user_id', $uid);
return $this;
}
@ -185,7 +195,8 @@ class OCCaseProvision extends EditorialContentEntityBase implements OCCaseProvis
/**
* {@inheritdoc}
*/
public function setOwner(UserInterface $account) {
public function setOwner(UserInterface $account)
{
$this->set('user_id', $account->id());
return $this;
}
@ -193,7 +204,8 @@ class OCCaseProvision extends EditorialContentEntityBase implements OCCaseProvis
/**
* {@inheritdoc}
*/
public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
public static function baseFieldDefinitions(EntityTypeInterface $entity_type)
{
$fields = parent::baseFieldDefinitions($entity_type);
// Add the published field.
@ -206,21 +218,6 @@ class OCCaseProvision extends EditorialContentEntityBase implements OCCaseProvis
->setSetting('target_type', 'user')
->setSetting('handler', 'default')
->setTranslatable(TRUE)
->setDisplayOptions('view', [
'label' => 'hidden',
'type' => 'author',
'weight' => 0,
])
->setDisplayOptions('form', [
'type' => 'entity_reference_autocomplete',
'weight' => 5,
'settings' => [
'match_operator' => 'CONTAINS',
'size' => '60',
'autocomplete_type' => 'tags',
'placeholder' => '',
],
])
->setDisplayConfigurable('form', TRUE)
->setDisplayConfigurable('view', TRUE);
@ -233,22 +230,18 @@ class OCCaseProvision extends EditorialContentEntityBase implements OCCaseProvis
'text_processing' => 0,
])
->setDefaultValue('')
->setDisplayOptions('view', [
'label' => 'above',
'type' => 'string',
'weight' => -4,
])
->setDisplayOptions('form', [
'type' => 'string_textfield',
'weight' => -4,
])
->setDisplayConfigurable('form', TRUE)
->setDisplayConfigurable('view', TRUE)
->setRequired(TRUE);
$fields['status']->setDescription(t('A boolean indicating whether the Case Provision is published.'))
->setDisplayConfigurable('form', TRUE)
->setDisplayConfigurable('view', TRUE);
$fields['status'] = BaseFieldDefinition::create('boolean')
->setLabel(t('Visible'))
->setDescription('If this box is not ticked this record will be hidden from view for most users. Users with access to unpublished entities will be able to restore it if needed.')
->setRevisionable(TRUE)
->setDisplayConfigurable('form', true)
->setDisplayConfigurable('view', true)
->setDefaultValue(TRUE);
$fields['created'] = BaseFieldDefinition::create('created')
@ -273,10 +266,8 @@ class OCCaseProvision extends EditorialContentEntityBase implements OCCaseProvis
->setTranslatable(TRUE)
->setCardinality(1)
->setDefaultValueCallback('opencase_cases_default_case_id') // defined in opencase_cases.module
->setDisplayOptions('view', [
'type' => 'string',
'weight' => 0,
])
->setDisplayConfigurable('form', TRUE)
->setDisplayConfigurable('view', TRUE)
->setRequired(TRUE);
$fields['oc_provider'] = \Drupal\Core\Field\BaseFieldDefinition::create('entity_reference')

View File

@ -54,18 +54,9 @@ class OCCaseFeeForm extends ContentEntityForm {
*/
public function save(array $form, FormStateInterface $form_state) {
$entity = $this->entity;
// Save as a new revision if requested to do so.
if (!$form_state->isValueEmpty('new_revision') && $form_state->getValue('new_revision') != FALSE) {
$entity->setNewRevision();
// If a new revision is created, save the current user as revision author.
$entity->setRevisionCreationTime($this->time->getRequestTime());
$entity->setRevisionUserId($this->account->id());
}
else {
$entity->setNewRevision(FALSE);
}
$entity->setNewRevision();
$entity->setRevisionCreationTime(REQUEST_TIME);
$entity->setRevisionUserId(\Drupal::currentUser()->id());
$status = parent::save($form, $form_state);

View File

@ -38,18 +38,9 @@ class OCCaseForm extends ContentEntityForm {
*/
public function save(array $form, FormStateInterface $form_state) {
$entity = $this->entity;
// Save as a new revision if requested to do so.
if (!$form_state->isValueEmpty('new_revision') && $form_state->getValue('new_revision') != FALSE) {
$entity->setNewRevision();
// If a new revision is created, save the current user as revision author.
$entity->setRevisionCreationTime( \Drupal::time()->getRequestTime());
$entity->setRevisionUserId(\Drupal::currentUser()->id());
}
else {
$entity->setNewRevision(FALSE);
}
$entity->setNewRevision();
$entity->setRevisionCreationTime(REQUEST_TIME);
$entity->setRevisionUserId(\Drupal::currentUser()->id());
$status = parent::save($form, $form_state);

View File

@ -54,18 +54,9 @@ class OCCaseProvisionForm extends ContentEntityForm {
*/
public function save(array $form, FormStateInterface $form_state) {
$entity = $this->entity;
// Save as a new revision if requested to do so.
if (!$form_state->isValueEmpty('new_revision') && $form_state->getValue('new_revision') != FALSE) {
$entity->setNewRevision();
// If a new revision is created, save the current user as revision author.
$entity->setRevisionCreationTime($this->time->getRequestTime());
$entity->setRevisionUserId($this->account->id());
}
else {
$entity->setNewRevision(FALSE);
}
$entity->setNewRevision();
$entity->setRevisionCreationTime(REQUEST_TIME);
$entity->setRevisionUserId(\Drupal::currentUser()->id());
$status = parent::save($form, $form_state);

View File

@ -1,11 +0,0 @@
langcode: en
status: true
dependencies: { }
id: contact_opencase
label: 'Contact the OpenCase Developers'
recipients:
- naomi@aktivix.org
reply: ''
weight: 0
message: 'Thank you for your message. The OpenCase team will get back to you ASAP.'
redirect: ''

View File

@ -1,5 +0,0 @@
default_form: contact_opencase
flood:
limit: 5
interval: 3600
user_default_enabled: false

View File

@ -1,11 +0,0 @@
langcode: en
status: true
dependencies:
config:
- opencase_entities.oc_activity_type.case_note
id: oc_activity.case_note.default
targetEntityType: oc_activity
bundle: case_note
mode: default
content: { }
hidden: { }

View File

@ -1,26 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_activity.destitution_funds_provided.field_amount
- field.field.oc_activity.destitution_funds_provided.field_funds_for
- opencase_entities.oc_activity_type.destitution_funds_provided
id: oc_activity.destitution_funds_provided.default
targetEntityType: oc_activity
bundle: destitution_funds_provided
mode: default
content:
field_amount:
weight: 28
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_funds_for:
weight: 27
settings: { }
third_party_settings: { }
type: options_select
region: content
hidden: { }

View File

@ -1,29 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_activity.volunteer_training_session.field_date_attended
- field.field.oc_activity.volunteer_training_session.field_type_of_session
- opencase_entities.oc_activity_type.volunteer_training_session
module:
- datetime
id: oc_activity.volunteer_training_session.default
targetEntityType: oc_activity
bundle: volunteer_training_session
mode: default
content:
field_date_attended:
weight: 27
settings: { }
third_party_settings: { }
type: datetime_default
region: content
field_type_of_session:
weight: 26
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
hidden: { }

View File

@ -1,220 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_actor.client.field_asylum_status
- field.field.oc_actor.client.field_confidentiality_form
- field.field.oc_actor.client.field_date_of_birth
- field.field.oc_actor.client.field_dependants
- field.field.oc_actor.client.field_disability
- field.field.oc_actor.client.field_ethnic_o
- field.field.oc_actor.client.field_gender_identified_with
- field.field.oc_actor.client.field_general_noes
- field.field.oc_actor.client.field_how_heard
- field.field.oc_actor.client.field_income
- field.field.oc_actor.client.field_languages_spoken
- field.field.oc_actor.client.field_marital_
- field.field.oc_actor.client.field_nationalities
- field.field.oc_actor.client.field_referred_by
- field.field.oc_actor.client.field_sex
- opencase_entities.oc_actor_type.client
module:
- datetime
- file
_core:
default_config_hash: 90BCsdjSFMMiSp2Da3WhMM2sOUliF433LfErYxVCrgk
id: oc_actor.client.default
targetEntityType: oc_actor
bundle: client
mode: default
content:
email:
type: string_textfield
weight: 3
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_asylum_status:
weight: 11
settings: { }
third_party_settings: { }
type: options_select
region: content
field_client_field_1:
weight: 26
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_confidentiality_form:
weight: 20
settings:
progress_indicator: throbber
third_party_settings: { }
type: file_generic
region: content
field_date_of_birth:
weight: 8
settings: { }
third_party_settings: { }
type: datetime_default
region: content
field_dependants:
weight: 17
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_disability:
weight: 15
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_ethnic_o:
weight: 12
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_gender_identified_with:
weight: 9
settings: { }
third_party_settings: { }
type: options_select
region: content
field_general_noes:
weight: 21
settings:
rows: 5
placeholder: ''
third_party_settings: { }
type: string_textarea
region: content
field_how_heard:
weight: 18
settings: { }
third_party_settings: { }
type: options_select
region: content
field_income:
weight: 16
settings: { }
third_party_settings: { }
type: options_select
region: content
field_languages_spoken:
weight: 14
settings: { }
third_party_settings: { }
type: options_select
region: content
field_marital_:
weight: 10
settings: { }
third_party_settings: { }
type: options_select
region: content
field_nationalities:
type: options_select
weight: 13
region: content
settings: { }
third_party_settings: { }
field_referred_by:
weight: 19
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
first_name:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
last_name:
type: string_textfield
weight: 2
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
middle_names:
type: string_textfield
weight: 1
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
name:
type: string_textfield
weight: -4
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
phone:
type: string_textfield
weight: 4
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
phone2:
type: string_textfield
weight: 5
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
post_code:
type: string_textfield
weight: 7
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
postal_address:
type: string_textarea
weight: 6
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
user_id:
type: entity_reference_autocomplete
weight: 5
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
match_limit: 10
region: content
third_party_settings: { }
hidden:
field_sex: true
full_name: true
status: true
user_login: true

View File

@ -1,77 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_actor.volunteer.field_ethnic_o
- field.field.oc_actor.volunteer.field_general_noes
- field.field.oc_actor.volunteer.field_languages_spoken
- field.field.oc_actor.volunteer.field_nationalities
- field.field.oc_actor.volunteer.field_osic_level
- field.field.oc_actor.volunteer.field_skills
- opencase_entities.oc_actor_type.volunteer
id: oc_actor.volunteer.default
targetEntityType: oc_actor
bundle: volunteer
mode: default
content:
field_ethnic_o:
weight: 0
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_general_noes:
weight: 5
settings:
rows: 5
placeholder: ''
third_party_settings: { }
type: string_textarea
region: content
field_languages_spoken:
weight: 2
settings: { }
third_party_settings: { }
type: options_select
region: content
field_nationalities:
type: options_select
weight: 1
region: content
settings: { }
third_party_settings: { }
field_osic_level:
weight: 3
settings: { }
third_party_settings: { }
type: options_select
region: content
field_skills:
type: string_textarea
weight: 4
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
name:
type: string_textfield
weight: -4
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
user_id:
type: entity_reference_autocomplete
weight: 5
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
match_limit: 10
region: content
third_party_settings: { }
hidden: { }

View File

@ -1,49 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.accommodation.field_case_finance
- field.field.oc_case.accommodation.field_fee_calculation
- field.field.oc_case.accommodation.field_fee_or_equivalent_cost
- field.field.oc_case.accommodation.field_outcome
- field.field.oc_case.accommodation.field_type_of_acco
- opencase_cases.oc_case_type.accommodation
module:
- file
id: oc_case.accommodation.default
targetEntityType: oc_case
bundle: accommodation
mode: default
content:
field_case_finance:
weight: 1
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_calculation:
weight: 3
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_or_equivalent_cost:
weight: 2
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_outcome:
weight: 26
settings: { }
third_party_settings: { }
type: options_select
region: content
field_type_of_acco:
weight: 0
settings: { }
third_party_settings: { }
type: options_select
region: content
hidden: { }

View File

@ -1,49 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.asylum_support.field_case_finance
- field.field.oc_case.asylum_support.field_fee_calculation
- field.field.oc_case.asylum_support.field_fee_or_equivalent_cost
- field.field.oc_case.asylum_support.field_outcome
- field.field.oc_case.asylum_support.field_type_of_as
- opencase_cases.oc_case_type.asylum_support
module:
- file
id: oc_case.asylum_support.default
targetEntityType: oc_case
bundle: asylum_support
mode: default
content:
field_case_finance:
weight: 27
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_calculation:
weight: 29
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_or_equivalent_cost:
weight: 28
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_outcome:
weight: 30
settings: { }
third_party_settings: { }
type: options_select
region: content
field_type_of_as:
weight: 26
settings: { }
third_party_settings: { }
type: options_select
region: content
hidden: { }

View File

@ -1,57 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.employability.field_case_finance
- field.field.oc_case.employability.field_fee_calculation
- field.field.oc_case.employability.field_fee_or_equivalent_cost
- field.field.oc_case.employability.field_gave_list_of_agencies
- field.field.oc_case.employability.field_outcome
- field.field.oc_case.employability.field_type_of_employability_help
- opencase_cases.oc_case_type.employability
module:
- file
id: oc_case.employability.default
targetEntityType: oc_case
bundle: employability
mode: default
content:
field_case_finance:
weight: 28
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_calculation:
weight: 30
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_or_equivalent_cost:
weight: 29
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_gave_list_of_agencies:
weight: 27
settings:
display_label: true
third_party_settings: { }
type: boolean_checkbox
region: content
field_outcome:
weight: 31
settings: { }
third_party_settings: { }
type: options_select
region: content
field_type_of_employability_help:
weight: 26
settings: { }
third_party_settings: { }
type: options_select
region: content
hidden: { }

View File

@ -1,29 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.enquiry.field_outcome
- field.field.oc_case.enquiry.field_subject_of_enquiry
- opencase_cases.oc_case_type.enquiry
module:
- file
id: oc_case.enquiry.default
targetEntityType: oc_case
bundle: enquiry
mode: default
content:
field_outcome:
weight: 1
settings: { }
third_party_settings: { }
type: options_select
region: content
field_subject_of_enquiry:
weight: 0
settings:
rows: 5
placeholder: ''
third_party_settings: { }
type: string_textarea
region: content
hidden: { }

View File

@ -1,49 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.health.field_case_finance
- field.field.oc_case.health.field_fee_calculation
- field.field.oc_case.health.field_fee_or_equivalent_cost
- field.field.oc_case.health.field_outcome
- field.field.oc_case.health.field_type_health
- opencase_cases.oc_case_type.health
module:
- file
id: oc_case.health.default
targetEntityType: oc_case
bundle: health
mode: default
content:
field_case_finance:
weight: 27
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_calculation:
weight: 29
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_or_equivalent_cost:
weight: 28
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_outcome:
weight: 30
settings: { }
third_party_settings: { }
type: options_select
region: content
field_type_health:
weight: 26
settings: { }
third_party_settings: { }
type: options_select
region: content
hidden: { }

View File

@ -1,56 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.immigration.field_case_finance
- field.field.oc_case.immigration.field_fee_calculation
- field.field.oc_case.immigration.field_fee_or_equivalent_cost
- field.field.oc_case.immigration.field_level
- field.field.oc_case.immigration.field_outcome
- field.field.oc_case.immigration.field_type_of_applicat
- opencase_cases.oc_case_type.immigration
module:
- file
id: oc_case.immigration.default
targetEntityType: oc_case
bundle: immigration
mode: default
content:
field_case_finance:
weight: 28
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_calculation:
weight: 30
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_or_equivalent_cost:
weight: 29
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_level:
weight: 26
settings: { }
third_party_settings: { }
type: options_select
region: content
field_outcome:
weight: 31
settings: { }
third_party_settings: { }
type: options_select
region: content
field_type_of_applicat:
weight: 27
settings: { }
third_party_settings: { }
type: options_select
region: content
hidden: { }

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.pro_bono_immigration_service.field_outcome
- opencase_cases.oc_case_type.pro_bono_immigration_service
module:
- file
id: oc_case.pro_bono_immigration_service.default
targetEntityType: oc_case
bundle: pro_bono_immigration_service
mode: default
content:
field_outcome:
weight: 26
settings: { }
third_party_settings: { }
type: options_select
region: content
hidden: { }

View File

@ -1,49 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.welfare_rights.field_case_finance
- field.field.oc_case.welfare_rights.field_fee_calculation
- field.field.oc_case.welfare_rights.field_fee_or_equivalent_cost
- field.field.oc_case.welfare_rights.field_outcome
- field.field.oc_case.welfare_rights.field_type_of_welfare_rights_iss
- opencase_cases.oc_case_type.welfare_rights
module:
- file
id: oc_case.welfare_rights.default
targetEntityType: oc_case
bundle: welfare_rights
mode: default
content:
field_case_finance:
weight: 27
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_calculation:
weight: 29
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_or_equivalent_cost:
weight: 28
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_outcome:
weight: 30
settings: { }
third_party_settings: { }
type: options_select
region: content
field_type_of_welfare_rights_iss:
weight: 26
settings: { }
third_party_settings: { }
type: options_select
region: content
hidden: { }

View File

@ -1,13 +0,0 @@
langcode: en
status: true
dependencies:
config:
- opencase_entities.oc_activity_type.case_note
module:
- user
id: oc_activity.case_note.default
targetEntityType: oc_activity
bundle: case_note
mode: default
content: { }
hidden: { }

View File

@ -1,34 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_activity.destitution_funds_provided.field_amount
- field.field.oc_activity.destitution_funds_provided.field_funds_for
- opencase_entities.oc_activity_type.destitution_funds_provided
module:
- options
- user
id: oc_activity.destitution_funds_provided.default
targetEntityType: oc_activity
bundle: destitution_funds_provided
mode: default
content:
field_amount:
weight: 2
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
type: number_decimal
region: content
field_funds_for:
weight: 1
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
hidden: { }

View File

@ -1,33 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_activity.volunteer_training_session.field_date_attended
- field.field.oc_activity.volunteer_training_session.field_type_of_session
- opencase_entities.oc_activity_type.volunteer_training_session
module:
- datetime
- user
id: oc_activity.volunteer_training_session.default
targetEntityType: oc_activity
bundle: volunteer_training_session
mode: default
content:
field_date_attended:
weight: 1
label: above
settings:
format_type: medium
timezone_override: ''
third_party_settings: { }
type: datetime_default
region: content
field_type_of_session:
weight: 0
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
hidden: { }

View File

@ -1,151 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_actor.client.field_asylum_status
- field.field.oc_actor.client.field_confidentiality_form
- field.field.oc_actor.client.field_date_of_birth
- field.field.oc_actor.client.field_dependants
- field.field.oc_actor.client.field_disability
- field.field.oc_actor.client.field_ethnic_o
- field.field.oc_actor.client.field_gender_identified_with
- field.field.oc_actor.client.field_general_noes
- field.field.oc_actor.client.field_how_heard
- field.field.oc_actor.client.field_income
- field.field.oc_actor.client.field_languages_spoken
- field.field.oc_actor.client.field_marital_
- field.field.oc_actor.client.field_nationalities
- field.field.oc_actor.client.field_referred_by
- opencase_entities.oc_actor_type.client
module:
- datetime
- file
- options
- user
id: oc_actor.client.default
targetEntityType: oc_actor
bundle: client
mode: default
content:
field_asylum_status:
weight: 3
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_client_field_1:
weight: 1
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
field_confidentiality_form:
weight: 12
label: above
settings:
use_description_as_link_text: true
third_party_settings: { }
type: file_default
region: content
field_date_of_birth:
weight: 0
label: above
settings:
timezone_override: ''
format_type: short
third_party_settings: { }
type: datetime_default
region: content
field_dependants:
weight: 9
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
field_disability:
weight: 7
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
field_ethnic_o:
weight: 4
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
field_gender_identified_with:
weight: 1
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_general_noes:
weight: 13
label: above
settings: { }
third_party_settings: { }
type: basic_string
region: content
field_how_heard:
weight: 10
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_income:
weight: 8
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_languages_spoken:
weight: 6
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_marital_:
weight: 2
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_nationalities:
type: list_default
weight: 5
region: content
label: above
settings: { }
third_party_settings: { }
field_referred_by:
weight: 11
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
name:
label: above
type: string
weight: -4
region: content
settings:
link_to_entity: false
third_party_settings: { }
hidden: { }

View File

@ -1,78 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_actor.volunteer.field_ethnic_o
- field.field.oc_actor.volunteer.field_general_noes
- field.field.oc_actor.volunteer.field_languages_spoken
- field.field.oc_actor.volunteer.field_nationalities
- field.field.oc_actor.volunteer.field_osic_level
- field.field.oc_actor.volunteer.field_skills
- opencase_entities.oc_actor_type.volunteer
module:
- options
- user
id: oc_actor.volunteer.default
targetEntityType: oc_actor
bundle: volunteer
mode: default
content:
field_ethnic_o:
weight: 0
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
field_general_noes:
weight: 5
label: above
settings: { }
third_party_settings: { }
type: basic_string
region: content
field_languages_spoken:
weight: 2
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_nationalities:
type: list_default
weight: 1
region: content
label: above
settings: { }
third_party_settings: { }
field_osic_level:
weight: 3
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_sdfdsfds:
weight: 1
label: above
settings: { }
third_party_settings: { }
type: text_default
region: content
field_skills:
type: basic_string
weight: 4
region: content
label: above
settings: { }
third_party_settings: { }
name:
label: above
type: string
weight: -4
region: content
settings:
link_to_entity: false
third_party_settings: { }
hidden: { }

View File

@ -1,59 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.accommodation.field_case_finance
- field.field.oc_case.accommodation.field_fee_calculation
- field.field.oc_case.accommodation.field_fee_or_equivalent_cost
- field.field.oc_case.accommodation.field_outcome
- field.field.oc_case.accommodation.field_type_of_acco
- opencase_cases.oc_case_type.accommodation
module:
- file
- options
- user
id: oc_case.accommodation.default
targetEntityType: oc_case
bundle: accommodation
mode: default
content:
field_case_finance:
weight: 1
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_calculation:
weight: 3
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_or_equivalent_cost:
weight: 2
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
type: number_decimal
region: content
field_outcome:
weight: 4
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_type_of_acco:
weight: 0
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
hidden: { }

View File

@ -1,59 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.asylum_support.field_case_finance
- field.field.oc_case.asylum_support.field_fee_calculation
- field.field.oc_case.asylum_support.field_fee_or_equivalent_cost
- field.field.oc_case.asylum_support.field_outcome
- field.field.oc_case.asylum_support.field_type_of_as
- opencase_cases.oc_case_type.asylum_support
module:
- file
- options
- user
id: oc_case.asylum_support.default
targetEntityType: oc_case
bundle: asylum_support
mode: default
content:
field_case_finance:
weight: 1
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_calculation:
weight: 3
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_or_equivalent_cost:
weight: 2
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
type: number_decimal
region: content
field_outcome:
weight: 4
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_type_of_as:
weight: 0
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
hidden: { }

View File

@ -1,70 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.employability.field_case_finance
- field.field.oc_case.employability.field_fee_calculation
- field.field.oc_case.employability.field_fee_or_equivalent_cost
- field.field.oc_case.employability.field_gave_list_of_agencies
- field.field.oc_case.employability.field_outcome
- field.field.oc_case.employability.field_type_of_employability_help
- opencase_cases.oc_case_type.employability
module:
- file
- options
- user
id: oc_case.employability.default
targetEntityType: oc_case
bundle: employability
mode: default
content:
field_case_finance:
weight: 2
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_calculation:
weight: 4
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_or_equivalent_cost:
weight: 3
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
type: number_decimal
region: content
field_gave_list_of_agencies:
weight: 1
label: above
settings:
format: default
format_custom_false: ''
format_custom_true: ''
third_party_settings: { }
type: boolean
region: content
field_outcome:
weight: 5
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_type_of_employability_help:
weight: 0
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
hidden: { }

View File

@ -1,32 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.enquiry.field_outcome
- field.field.oc_case.enquiry.field_subject_of_enquiry
- opencase_cases.oc_case_type.enquiry
module:
- file
- options
- user
id: oc_case.enquiry.default
targetEntityType: oc_case
bundle: enquiry
mode: default
content:
field_outcome:
weight: 1
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_subject_of_enquiry:
weight: 0
label: above
settings: { }
third_party_settings: { }
type: basic_string
region: content
hidden:
search_api_excerpt: true

View File

@ -1,59 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.health.field_case_finance
- field.field.oc_case.health.field_fee_calculation
- field.field.oc_case.health.field_fee_or_equivalent_cost
- field.field.oc_case.health.field_outcome
- field.field.oc_case.health.field_type_health
- opencase_cases.oc_case_type.health
module:
- file
- options
- user
id: oc_case.health.default
targetEntityType: oc_case
bundle: health
mode: default
content:
field_case_finance:
weight: 1
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_calculation:
weight: 3
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_or_equivalent_cost:
weight: 2
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
type: number_decimal
region: content
field_outcome:
weight: 4
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_type_health:
weight: 0
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
hidden: { }

View File

@ -1,67 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.immigration.field_case_finance
- field.field.oc_case.immigration.field_fee_calculation
- field.field.oc_case.immigration.field_fee_or_equivalent_cost
- field.field.oc_case.immigration.field_level
- field.field.oc_case.immigration.field_outcome
- field.field.oc_case.immigration.field_type_of_applicat
- opencase_cases.oc_case_type.immigration
module:
- file
- options
- user
id: oc_case.immigration.default
targetEntityType: oc_case
bundle: immigration
mode: default
content:
field_case_finance:
weight: 2
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_calculation:
weight: 4
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_or_equivalent_cost:
weight: 3
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
type: number_decimal
region: content
field_level:
weight: 0
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_outcome:
weight: 5
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_type_of_applicat:
weight: 1
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
hidden: { }

View File

@ -1,24 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.pro_bono_immigration_service.field_outcome
- opencase_cases.oc_case_type.pro_bono_immigration_service
module:
- file
- options
- user
id: oc_case.pro_bono_immigration_service.default
targetEntityType: oc_case
bundle: pro_bono_immigration_service
mode: default
content:
field_outcome:
weight: 6
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
hidden:
search_api_excerpt: true

View File

@ -1,59 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.welfare_rights.field_case_finance
- field.field.oc_case.welfare_rights.field_fee_calculation
- field.field.oc_case.welfare_rights.field_fee_or_equivalent_cost
- field.field.oc_case.welfare_rights.field_outcome
- field.field.oc_case.welfare_rights.field_type_of_welfare_rights_iss
- opencase_cases.oc_case_type.welfare_rights
module:
- file
- options
- user
id: oc_case.welfare_rights.default
targetEntityType: oc_case
bundle: welfare_rights
mode: default
content:
field_case_finance:
weight: 1
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_calculation:
weight: 3
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_or_equivalent_cost:
weight: 2
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
type: number_decimal
region: content
field_outcome:
weight: 4
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_type_of_welfare_rights_iss:
weight: 0
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
hidden: { }

View File

@ -1,22 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_activity.field_amount
- opencase_entities.oc_activity_type.destitution_funds_provided
id: oc_activity.destitution_funds_provided.field_amount
field_name: field_amount
entity_type: oc_activity
bundle: destitution_funds_provided
label: Amount
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: £
suffix: ''
field_type: decimal

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_activity.field_funds_for
- opencase_entities.oc_activity_type.destitution_funds_provided
module:
- options
id: oc_activity.destitution_funds_provided.field_funds_for
field_name: field_funds_for
entity_type: oc_activity
bundle: destitution_funds_provided
label: For
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_activity.field_date_attended
- opencase_entities.oc_activity_type.volunteer_training_session
module:
- datetime
id: oc_activity.volunteer_training_session.field_date_attended
field_name: field_date_attended
entity_type: oc_activity
bundle: volunteer_training_session
label: 'Date attended'
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: datetime

View File

@ -1,18 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_activity.field_type_of_session
- opencase_entities.oc_activity_type.volunteer_training_session
id: oc_activity.volunteer_training_session.field_type_of_session
field_name: field_type_of_session
entity_type: oc_activity
bundle: volunteer_training_session
label: 'Type of session'
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_asylum_status
- opencase_entities.oc_actor_type.client
module:
- options
id: oc_actor.client.field_asylum_status
field_name: field_asylum_status
entity_type: oc_actor
bundle: client
label: 'Asylum status'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,26 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_confidentiality_form
- opencase_entities.oc_actor_type.client
module:
- file
id: oc_actor.client.field_confidentiality_form
field_name: field_confidentiality_form
entity_type: oc_actor
bundle: client
label: 'Confidentiality Form'
description: 'Data protection/confidentiality/complaints form signed and uploaded'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
file_directory: '[date:custom:Y]-[date:custom:m]'
file_extensions: pdf
max_filesize: '2 MB'
description_field: false
handler: 'default:file'
handler_settings: { }
field_type: file

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_date_of_birth
- opencase_entities.oc_actor_type.client
module:
- datetime
id: oc_actor.client.field_date_of_birth
field_name: field_date_of_birth
entity_type: oc_actor
bundle: client
label: 'Date of birth'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: datetime

View File

@ -1,18 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_dependants
- opencase_entities.oc_actor_type.client
id: oc_actor.client.field_dependants
field_name: field_dependants
entity_type: oc_actor
bundle: client
label: Dependants
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

View File

@ -1,18 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_disability
- opencase_entities.oc_actor_type.client
id: oc_actor.client.field_disability
field_name: field_disability
entity_type: oc_actor
bundle: client
label: Disability
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

View File

@ -1,18 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_ethnic_o
- opencase_entities.oc_actor_type.client
id: oc_actor.client.field_ethnic_o
field_name: field_ethnic_o
entity_type: oc_actor
bundle: client
label: 'Ethnic origin'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_gender_identified_with
- opencase_entities.oc_actor_type.client
module:
- options
id: oc_actor.client.field_gender_identified_with
field_name: field_gender_identified_with
entity_type: oc_actor
bundle: client
label: 'Gender identified with'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,18 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_general_noes
- opencase_entities.oc_actor_type.client
id: oc_actor.client.field_general_noes
field_name: field_general_noes
entity_type: oc_actor
bundle: client
label: 'General notes'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_how_heard
- opencase_entities.oc_actor_type.client
module:
- options
id: oc_actor.client.field_how_heard
field_name: field_how_heard
entity_type: oc_actor
bundle: client
label: 'How did you hear about the service?'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_income
- opencase_entities.oc_actor_type.client
module:
- options
id: oc_actor.client.field_income
field_name: field_income
entity_type: oc_actor
bundle: client
label: Income
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_languages_spoken
- opencase_entities.oc_actor_type.client
module:
- options
id: oc_actor.client.field_languages_spoken
field_name: field_languages_spoken
entity_type: oc_actor
bundle: client
label: 'Languages spoken'
description: 'Hold down <b>Ctrl</b> (or the Mac equivalent) while clicking, and you can select more than one.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_marital_
- opencase_entities.oc_actor_type.client
module:
- options
id: oc_actor.client.field_marital_
field_name: field_marital_
entity_type: oc_actor
bundle: client
label: 'Marital status'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_nationalities
- opencase_entities.oc_actor_type.client
module:
- options
id: oc_actor.client.field_nationalities
field_name: field_nationalities
entity_type: oc_actor
bundle: client
label: Nationality
description: 'To select multiple nationalities, hold down <b>Ctrl</b> (or the Mac equivalent) while clicking.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,18 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_referred_by
- opencase_entities.oc_actor_type.client
id: oc_actor.client.field_referred_by
field_name: field_referred_by
entity_type: oc_actor
bundle: client
label: 'Referred by'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_sex
- opencase_entities.oc_actor_type.client
module:
- options
id: oc_actor.client.field_sex
field_name: field_sex
entity_type: oc_actor
bundle: client
label: Sex
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,18 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_general_noes
- opencase_entities.oc_actor_type.volunteer
id: oc_actor.volunteer.field_general_noes
field_name: field_general_noes
entity_type: oc_actor
bundle: volunteer
label: 'General notes'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_languages_spoken
- opencase_entities.oc_actor_type.volunteer
module:
- options
id: oc_actor.volunteer.field_languages_spoken
field_name: field_languages_spoken
entity_type: oc_actor
bundle: volunteer
label: 'Languages spoken'
description: 'Hold down <b>Ctrl</b> (or the Mac equivalent) while clicking, and you can select more than one.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_nationalities
- opencase_entities.oc_actor_type.volunteer
module:
- options
id: oc_actor.volunteer.field_nationalities
field_name: field_nationalities
entity_type: oc_actor
bundle: volunteer
label: Nationality
description: 'To select multiple nationalities, hold down <b>Ctrl</b> (or the Mac equivalent) while clicking.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_osic_level
- opencase_entities.oc_actor_type.volunteer
module:
- options
id: oc_actor.volunteer.field_osic_level
field_name: field_osic_level
entity_type: oc_actor
bundle: volunteer
label: 'OSIC level'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,18 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_skills
- opencase_entities.oc_actor_type.volunteer
id: oc_actor.volunteer.field_skills
field_name: field_skills
entity_type: oc_actor
bundle: volunteer
label: Skills
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_case_finance
- opencase_cases.oc_case_type.accommodation
module:
- options
id: oc_case.accommodation.field_case_finance
field_name: field_case_finance
entity_type: oc_case
bundle: accommodation
label: 'Case finance'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_fee_calculation
- opencase_cases.oc_case_type.accommodation
module:
- options
id: oc_case.accommodation.field_fee_calculation
field_name: field_fee_calculation
entity_type: oc_case
bundle: accommodation
label: 'Fee calculation'
description: 'If it is per hour, it will be calculated according to the sum of time spent on all the activities logged on the case.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,22 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_fee_or_equivalent_cost
- opencase_cases.oc_case_type.accommodation
id: oc_case.accommodation.field_fee_or_equivalent_cost
field_name: field_fee_or_equivalent_cost
entity_type: oc_case
bundle: accommodation
label: 'Fee or equivalent cost'
description: 'If the case is pro bono, state what it would have cost if it were fee paying.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: £
suffix: ''
field_type: decimal

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_outcome
- opencase_cases.oc_case_type.accommodation
module:
- options
id: oc_case.accommodation.field_outcome
field_name: field_outcome
entity_type: oc_case
bundle: accommodation
label: Outcome
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_type_of_acco
- opencase_cases.oc_case_type.accommodation
module:
- options
id: oc_case.accommodation.field_type_of_acco
field_name: field_type_of_acco
entity_type: oc_case
bundle: accommodation
label: 'Type of accommodation issue'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_case_finance
- opencase_cases.oc_case_type.asylum_support
module:
- options
id: oc_case.asylum_support.field_case_finance
field_name: field_case_finance
entity_type: oc_case
bundle: asylum_support
label: 'Case finance'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_fee_calculation
- opencase_cases.oc_case_type.asylum_support
module:
- options
id: oc_case.asylum_support.field_fee_calculation
field_name: field_fee_calculation
entity_type: oc_case
bundle: asylum_support
label: 'Fee calculation'
description: 'If it is per hour, it will be calculated according to the sum of time spent on all the activities logged on the case.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,22 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_fee_or_equivalent_cost
- opencase_cases.oc_case_type.asylum_support
id: oc_case.asylum_support.field_fee_or_equivalent_cost
field_name: field_fee_or_equivalent_cost
entity_type: oc_case
bundle: asylum_support
label: 'Fee or equivalent cost'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: £
suffix: ''
field_type: decimal

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_outcome
- opencase_cases.oc_case_type.asylum_support
module:
- options
id: oc_case.asylum_support.field_outcome
field_name: field_outcome
entity_type: oc_case
bundle: asylum_support
label: Outcome
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_type_of_as
- opencase_cases.oc_case_type.asylum_support
module:
- options
id: oc_case.asylum_support.field_type_of_as
field_name: field_type_of_as
entity_type: oc_case
bundle: asylum_support
label: 'Type of asylum support'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_case_finance
- opencase_cases.oc_case_type.employability
module:
- options
id: oc_case.employability.field_case_finance
field_name: field_case_finance
entity_type: oc_case
bundle: employability
label: 'Case finance'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_fee_calculation
- opencase_cases.oc_case_type.employability
module:
- options
id: oc_case.employability.field_fee_calculation
field_name: field_fee_calculation
entity_type: oc_case
bundle: employability
label: 'Fee calculation'
description: 'If it is per hour, it will be calculated according to the sum of time spent on all the activities logged on the case.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,22 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_fee_or_equivalent_cost
- opencase_cases.oc_case_type.employability
id: oc_case.employability.field_fee_or_equivalent_cost
field_name: field_fee_or_equivalent_cost
entity_type: oc_case
bundle: employability
label: 'Fee or equivalent cost'
description: 'If the case is pro bono, state what it would have cost if it were fee paying.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: £
suffix: ''
field_type: decimal

View File

@ -1,22 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_gave_list_of_agencies
- opencase_cases.oc_case_type.employability
id: oc_case.employability.field_gave_list_of_agencies
field_name: field_gave_list_of_agencies
entity_type: oc_case
bundle: employability
label: 'Gave list of agencies'
description: ''
required: false
translatable: false
default_value:
-
value: 0
default_value_callback: ''
settings:
on_label: 'Yes'
off_label: 'No'
field_type: boolean

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_outcome
- opencase_cases.oc_case_type.employability
module:
- options
id: oc_case.employability.field_outcome
field_name: field_outcome
entity_type: oc_case
bundle: employability
label: Outcome
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_type_of_employability_help
- opencase_cases.oc_case_type.employability
module:
- options
id: oc_case.employability.field_type_of_employability_help
field_name: field_type_of_employability_help
entity_type: oc_case
bundle: employability
label: 'Type of employability help'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,22 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_outcome
- opencase_cases.oc_case_type.enquiry
module:
- options
id: oc_case.enquiry.field_outcome
field_name: field_outcome
entity_type: oc_case
bundle: enquiry
label: Outcome
description: ''
required: false
translatable: true
default_value:
-
value: 'One-off interaction'
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,18 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_subject_of_enquiry
- opencase_cases.oc_case_type.enquiry
id: oc_case.enquiry.field_subject_of_enquiry
field_name: field_subject_of_enquiry
entity_type: oc_case
bundle: enquiry
label: 'Subject of Enquiry'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_case_finance
- opencase_cases.oc_case_type.health
module:
- options
id: oc_case.health.field_case_finance
field_name: field_case_finance
entity_type: oc_case
bundle: health
label: 'Case finance'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_fee_calculation
- opencase_cases.oc_case_type.health
module:
- options
id: oc_case.health.field_fee_calculation
field_name: field_fee_calculation
entity_type: oc_case
bundle: health
label: 'Fee calculation'
description: 'If it is per hour, it will be calculated according to the sum of time spent on all the activities logged on the case.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,22 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_fee_or_equivalent_cost
- opencase_cases.oc_case_type.health
id: oc_case.health.field_fee_or_equivalent_cost
field_name: field_fee_or_equivalent_cost
entity_type: oc_case
bundle: health
label: 'Fee or equivalent cost'
description: 'If the case is pro bono, state what it would have cost if it were fee paying.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: £
suffix: ''
field_type: decimal

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_outcome
- opencase_cases.oc_case_type.health
module:
- options
id: oc_case.health.field_outcome
field_name: field_outcome
entity_type: oc_case
bundle: health
label: Outcome
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_type_health
- opencase_cases.oc_case_type.health
module:
- options
id: oc_case.health.field_type_health
field_name: field_type_health
entity_type: oc_case
bundle: health
label: 'Type of health assistance'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_case_finance
- opencase_cases.oc_case_type.immigration
module:
- options
id: oc_case.immigration.field_case_finance
field_name: field_case_finance
entity_type: oc_case
bundle: immigration
label: 'Case finance'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_fee_calculation
- opencase_cases.oc_case_type.immigration
module:
- options
id: oc_case.immigration.field_fee_calculation
field_name: field_fee_calculation
entity_type: oc_case
bundle: immigration
label: 'Fee calculation'
description: 'If it is per hour, it will be calculated according to the sum of time spent on all the activities logged on the case.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,22 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_fee_or_equivalent_cost
- opencase_cases.oc_case_type.immigration
id: oc_case.immigration.field_fee_or_equivalent_cost
field_name: field_fee_or_equivalent_cost
entity_type: oc_case
bundle: immigration
label: 'Fee or equivalent cost'
description: 'If the case is pro bono, state what it would have cost if it were fee paying.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: £
suffix: ''
field_type: decimal

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_level
- opencase_cases.oc_case_type.immigration
module:
- options
id: oc_case.immigration.field_level
field_name: field_level
entity_type: oc_case
bundle: immigration
label: Level
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_integer

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_outcome
- opencase_cases.oc_case_type.immigration
module:
- options
id: oc_case.immigration.field_outcome
field_name: field_outcome
entity_type: oc_case
bundle: immigration
label: Outcome
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_type_of_applicat
- opencase_cases.oc_case_type.immigration
module:
- options
id: oc_case.immigration.field_type_of_applicat
field_name: field_type_of_applicat
entity_type: oc_case
bundle: immigration
label: 'Type of application'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_outcome
- opencase_cases.oc_case_type.pro_bono_immigration_service
module:
- options
id: oc_case.pro_bono_immigration_service.field_outcome
field_name: field_outcome
entity_type: oc_case
bundle: pro_bono_immigration_service
label: Outcome
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_case_finance
- opencase_cases.oc_case_type.welfare_rights
module:
- options
id: oc_case.welfare_rights.field_case_finance
field_name: field_case_finance
entity_type: oc_case
bundle: welfare_rights
label: 'Case finance'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_fee_calculation
- opencase_cases.oc_case_type.welfare_rights
module:
- options
id: oc_case.welfare_rights.field_fee_calculation
field_name: field_fee_calculation
entity_type: oc_case
bundle: welfare_rights
label: 'Fee calculation'
description: 'If it is per hour, it will be calculated according to the sum of time spent on all the activities logged on the case.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,22 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_fee_or_equivalent_cost
- opencase_cases.oc_case_type.welfare_rights
id: oc_case.welfare_rights.field_fee_or_equivalent_cost
field_name: field_fee_or_equivalent_cost
entity_type: oc_case
bundle: welfare_rights
label: 'Fee or equivalent cost'
description: 'If the case is pro bono, state what it would have cost if it were fee paying.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: £
suffix: ''
field_type: decimal

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_outcome
- opencase_cases.oc_case_type.welfare_rights
module:
- options
id: oc_case.welfare_rights.field_outcome
field_name: field_outcome
entity_type: oc_case
bundle: welfare_rights
label: Outcome
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_type_of_welfare_rights_iss
- opencase_cases.oc_case_type.welfare_rights
module:
- options
id: oc_case.welfare_rights.field_type_of_welfare_rights_iss
field_name: field_type_of_welfare_rights_iss
entity_type: oc_case
bundle: welfare_rights
label: 'Type of welfare rights issue'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

Some files were not shown because too many files have changed in this diff Show More