Equipment
extends CatalogItem
in package
Implements the Equipment bundle class for the catalog_item entity.
Table of Contents
Methods
- baseFieldDefinitions() : array<string|int, mixed>
- {@inheritdoc}
- getParent() : Entity|null
- Returns the parent of the catalog item.
- isCatalogItem() : bool
- Method to determine if this entity has configurable fields.
- isParent() : bool
- Returns if the catalog item is a parent or not.
- label() : mixed
- Overwrites the label for this bundle.
- postSave() : mixed
- Implements Entity::postSave().
- urlRouteParameters() : mixed
- {@inheritdoc}
Methods
baseFieldDefinitions()
{@inheritdoc}
public
static baseFieldDefinitions(EntityTypeInterface $entity_type) : array<string|int, mixed>
Parameters
- $entity_type : EntityTypeInterface
Return values
array<string|int, mixed>getParent()
Returns the parent of the catalog item.
public
getParent() : Entity|null
Return values
Entity|null —Returns the parent entity or NULL if no parent exists.
isCatalogItem()
Method to determine if this entity has configurable fields.
public
static isCatalogItem() : bool
Return values
bool —Should return TRUE if this item should generate a link on the Field Configuration page, or FALSE if not.
isParent()
Returns if the catalog item is a parent or not.
public
isParent() : bool
Return values
bool —Boolean value determining if the entity is a parent or not.
label()
Overwrites the label for this bundle.
public
label() : mixed
postSave()
Implements Entity::postSave().
public
postSave(EntityStorageInterface $storage[, mixed $update = true ]) : mixed
Method to update child entities based on the parent entities values when it's saved.
This method will sync the shared fields of the parent with the children in the collection.
Parameters
- $storage : EntityStorageInterface
- $update : mixed = true
urlRouteParameters()
{@inheritdoc}
public
urlRouteParameters(mixed $rel) : mixed
Parameters
- $rel : mixed