interface SampleEntityGeneratorInterface (View source)

Generates a sample entity.

Methods

get(string $entity_type_id, string $bundle_id)

Gets a sample entity for a given entity type and bundle.

$this
delete(string $entity_type_id, string $bundle_id)

Deletes a sample entity for a given entity type and bundle.

Details

EntityInterface get(string $entity_type_id, string $bundle_id)

Gets a sample entity for a given entity type and bundle.

Parameters

string $entity_type_id

The entity type ID.

string $bundle_id

The bundle ID.

Return Value

EntityInterface

An entity.

$this delete(string $entity_type_id, string $bundle_id)

Deletes a sample entity for a given entity type and bundle.

Parameters

string $entity_type_id

The entity type ID.

string $bundle_id

The bundle ID.

Return Value

$this