Drupal Test Helpers module API documentation - release 1.3.1

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 setted info.


        
On this page

Search results