Drupal Test Helpers module API documentation - release 1.7.0

EntityTypeBundleInfoStub extends EntityTypeBundleInfo
in package

A stub of the Drupal's default EntityTypeBundleInfo class.

@package TestHelpers\DrupalServiceStubs

Table of Contents

Methods

stubSetBundleInfo()  : void
Sets the bundle info.

Methods

stubSetBundleInfo()

Sets the bundle info.

public stubSetBundleInfo(string $entityTypeId, string $bundleName[, EntityInterface|null $bundleEntity = null ][, mixed $force = false ]) : void
Parameters
$entityTypeId : string

The entity type id.

$bundleName : string

The bundle name.

$bundleEntity : EntityInterface|null = null

The bundle info.

$force : mixed = false

Override already set info.


        
On this page

Search results