|
|
@ -64,7 +64,8 @@ class ReserveCategory extends FieldItemBase implements FieldItemInterface { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function fieldSettingsForm(array $form, FormStateInterface $form_state) { |
|
|
|
public function fieldSettingsForm(array $form, FormStateInterface $form_state) { |
|
|
|
// get a list of all Reserve Categories |
|
|
|
// get a list of all Reserve Categories |
|
|
|
$ids = \Drupal::entityQuery('reserve_category')->sort('name', 'ASC')->execute(); |
|
|
|
$ids = \Drupal::entityQuery('reserve_category')->accessCheck(TRUE) |
|
|
|
|
|
|
|
->sort('name', 'ASC')->execute(); |
|
|
|
$categories = \Drupal\reserve\Entity\ReserveCategory::loadMultiple($ids); |
|
|
|
$categories = \Drupal\reserve\Entity\ReserveCategory::loadMultiple($ids); |
|
|
|
$options = array(); |
|
|
|
$options = array(); |
|
|
|
foreach ($categories as $cat) { |
|
|
|
foreach ($categories as $cat) { |
|
|
|