Content
DrevOps\BehatSteps\Steps\Drupal\ContentTrait - Source, Steps
Manage Drupal content with workflow and moderation support.
public function contentCreate(string $content_type, array $values): EntityStubInterface
Create a node of a content type
public function contentDelete(string $content_type, array $conditions): void
Delete the nodes of a content type that match conditions
public function contentGetNidByTitle(string $content_type, string $title): int
Return the ID of the node with the specified type and title
public function contentGetNodeByTitle(string $content_type, string $title): EntityStubInterface
Return the node with the specified type and title
public function contentRebuildAccessGrants(EntityStubInterface $node): void
Rebuild the access grants of a node
public function contentSetModerationState(EntityStubInterface $node, string $state): void
Set the moderation state of a node and save it
public function contentSetPathAlias(EntityStubInterface $node, string $alias): void
Set the path alias of a node, replacing any existing alias
public function contentVisitActionPageWithTitle(string $content_type, string $title, string $rel = 'canonical'): void
Visit a page of the content with a specified title