Skip to content

Commit

Permalink
DROOP-746 Allowe to include/exclude plugin categories for the d_block…
Browse files Browse the repository at this point in the history
…_field
  • Loading branch information
js-droptica committed Jan 12, 2024
1 parent 231169d commit 5c6b9c4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen
$item->settings = $item->settings ?: [];
}

$categories = array_filter($this->getFieldSetting('plugin_categories'));
$categories_exclude = $this->getFieldSetting('plugin_categories_exclude');
$categories = array_filter($this->getFieldSetting('plugin_categories') ?? []);
$categories_exclude = $this->getFieldSetting('plugin_categories_exclude') ?? FALSE;

$options = [];
$definitions = $this->fieldManager->getBlockDefinitions();
Expand Down

0 comments on commit 5c6b9c4

Please sign in to comment.