GqlEntityRegistry

Type
Class
Namespace
craft\gql
Inherits
craft\gql\GqlEntityRegistry
Since
3.3.0

Class GqlEntityRegistry

View source

# Public Methods

Method Description
createEntity() Create an entity registry entry.
flush() Flush all registered entities.
getEntity() Get a registered entity.
prefixTypeName() Prefix GQL type name with the configured prefix.

# createEntity()

Create an entity registry entry.

View source

Arguments

  • $entityName (string)
  • $entity (mixed)

Returns

mixed

# flush()

Flush all registered entities.

View source

# getEntity()

Get a registered entity.

View source

Arguments

Returns

boolean, mixed

# prefixTypeName()

Prefix GQL type name with the configured prefix.

View source

Arguments

Returns

string