Skip to main content

ECK entities

DrevOps\BehatSteps\Steps\Drupal\EckTrait - Source, Steps

Manage Drupal ECK entities of an existing entity type and bundle.

public function eckCreate(EntityStub $stub): void

Create a single content entity

public function eckDelete(string $entity_type, string $bundle, array $conditions): void

Delete the entities of a type and bundle that match conditions

public function eckGetEntityByTitle(string $entity_type, string $bundle, string $title): EntityStubInterface

Get an entity of a type and bundle by title

public function eckGetEntityUrlByTitle(string $entity_type, string $bundle, string $title, string $rel = 'canonical'): string

Get the URL of a page of the entity of a type and bundle with a title

public function eckLoadMultiple(string $entity_type, string $bundle, array $conditions = []): array

Load multiple entities with specified type and conditions