environment_fieldaccess_test.module 511 Bytes
Newer Older
Sergii Bondarenko's avatar
Sergii Bondarenko committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<?php
/**
 * @file
 * Environment Field Access (Test).
 */

/**
 * Implements hook_environment().
 */
function environment_fieldaccess_test_environment() {
  $environments = [];

  $environments['test_show'] = [
    'label' => t('Environment for testing'),
    'description' => t('Environment, where fields are available'),
  ];

  $environments['test_hide'] = [
    'label' => t('Environment for testing'),
    'description' => t('Environment, where fields are not available'),
  ];

  return $environments;
}