Skip to main content

Content blocks

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

Manage Drupal content blocks.

public function contentBlockCreate(string $content_block_type, array $values): EntityStubInterface

Create a block content entity with the specified type and field values

public function contentBlockDelete(string $content_block_type, array $conditions): void

Delete the content blocks of a type that match conditions

public function contentBlockGetByDescription(string $content_block_type, string $description): EntityStubInterface

Get the newest content block with a description

public function contentBlockLoadMultiple(string $content_block_type, array $conditions = []): array

Load multiple content blocks with specified type and conditions