EntityTypeInfo
class EntityTypeInfo implements ContainerInjectionInterface (View source)
| internal |
Manipulates entity type information.
This class contains primarily bridged hooks for compile-time or cache-clear-time hooks. Runtime hooks should be placed in EntityOperations.
Properties
| protected EntityTypeManagerInterface | $entityTypeManager | The entity type manager service. |
|
| protected WorkspaceManagerInterface | $workspaceManager | The workspace manager service. |
Methods
Constructs a new EntityTypeInfo instance.
Instantiates a new instance of this class.
Adds the "EntityWorkspaceConflict" constraint to eligible entity types.
Removes the 'latest-version' link template provided by Content Moderation.
Alters field plugin definitions.
Provides custom base field definitions for a content entity type.
Details
__construct(EntityTypeManagerInterface $entity_type_manager, WorkspaceManagerInterface $workspace_manager)
Constructs a new EntityTypeInfo instance.
static
create(ContainerInterface $container)
Instantiates a new instance of this class.
This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton.
entityTypeBuild(array $entity_types)
Adds the "EntityWorkspaceConflict" constraint to eligible entity types.
entityTypeAlter(array $entity_types)
Removes the 'latest-version' link template provided by Content Moderation.
fieldInfoAlter(array[] $definitions)
Alters field plugin definitions.
FieldDefinitionInterface[]
entityBaseFieldInfo(EntityTypeInterface $entity_type)
Provides custom base field definitions for a content entity type.