Skip to content

Commit

Permalink
5077 - Flag DocumentTypeClassification as internal and remove obsolet…
Browse files Browse the repository at this point in the history
…e backing values
  • Loading branch information
Bernhard Schmitt committed Jul 30, 2024
1 parent 8fa1eb9 commit 07c3cd0
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,35 @@
use Neos\ContentRepository\Core\NodeType\NodeTypeName;
use Neos\Neos\Domain\Service\NodeTypeNameFactory;

enum DocumentTypeClassification: string
/**
* @internal is subject to change and may be removed / refactored beyond recognition at any time
*/
enum DocumentTypeClassification
{
/**
* Satisfied if a node type is an actual document, meaning explicitly no shortcut or site
*/
case CLASSIFICATION_DOCUMENT = 'document';
case CLASSIFICATION_DOCUMENT;

/**
* Satisfied if a node type is a shortcut
*/
case CLASSIFICATION_SHORTCUT = 'shortcut';
case CLASSIFICATION_SHORTCUT;

/**
* Satisfied if a node type is a site
*/
case CLASSIFICATION_SITE = 'site';
case CLASSIFICATION_SITE;

/**
* Satisfied if a node type is neither of the above
*/
case CLASSIFICATION_NONE = 'none';
case CLASSIFICATION_NONE;

/**
* Satisfied if a node type does no longer exist and we can't be certain
*/
case CLASSIFICATION_UNKNOWN = 'unknown';
case CLASSIFICATION_UNKNOWN;

public static function forNodeType(NodeTypeName $nodeTypeName, NodeTypeManager $nodeTypeManager): self
{
Expand Down

0 comments on commit 07c3cd0

Please sign in to comment.