Paragraphs
DrevOps\BehatSteps\Steps\Drupal\ParagraphsTrait - Source, Steps
Manage Drupal paragraphs entities with structured field data.
public function paragraphsAttachFromStubToEntity(EntityStubInterface $parent_entity, string $parent_field, string $paragraph_type, EntityStubInterface $stub): EntityStubInterface
Create a paragraphs item from a stub and attach it to an entity
public function paragraphsBuildStub(string $paragraph_type, array $fields): EntityStub
Build a paragraph stub from field values
public function paragraphsFindEntity(string $entity_type, string $bundle, string $field_name, string $field_value): ?EntityStubInterface
Find entity
public function paragraphsGetParentEntity(string $entity_type, string $bundle, string $field_name, string $lookup_field, string $lookup_value): EntityStubInterface
Get the entity to attach a paragraph to