Skip to content
Snippets Groups Projects
Commit 280bd287 authored by Lily Yan's avatar Lily Yan
Browse files

Merge branch 'feature/ISTWCMS-4869-ibiki-sidebar-reference-unpublished' into '1.0.x'

ISTWCMS-4869: Adding reference method.

See merge request !114
parents 963372f0 fa6dce8a
No related branches found
No related tags found
1 merge request!114ISTWCMS-4869: Adding reference method.
<?php
namespace Drupal\uw_cfg_common\Plugin\EntityReferenceSelection;
use Drupal\Core\Entity\Plugin\EntityReferenceSelection\DefaultSelection;
/**
* Entity reference selection plugin to include unpublished nodes.
*
* This file should be removed once issue is merged in:
* See https://www.drupal.org/project/drupal/issues/2845144
* Remove in Drupal 9.3 (or later).
*
* @EntityReferenceSelection(
* id = "uw_unpublished",
* label = @Translation("Unpublished included"),
* entity_types = {"node"},
* group = "uw_unpublished",
* weight = 0,
* )
*/
class UnpublishedNodeSelection extends DefaultSelection {}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment