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.