interface CommerceAutoSkuManagerInterface in Commerce AutoSKU 8.2
Provides an interface for AutoEntityLabelManager.
Hierarchy
- interface \Drupal\commerce_autosku\CommerceAutoSkuManagerInterface
Expanded class hierarchy of CommerceAutoSkuManagerInterface
All classes that implement CommerceAutoSkuManagerInterface
1 file declares its use of CommerceAutoSkuManagerInterface
- commerce_autosku.module in ./
commerce_autosku.module - Allows hiding of entity label fields and automatic label creation.
File
- src/
CommerceAutoSkuManagerInterface.php, line 13 - Contains Drupal\commerce_autosku\AutoEntityLabelManagerInterface.
Namespace
Drupal\commerce_autoskuView source
interface CommerceAutoSkuManagerInterface {
/**
* Sets the automatically generated entity label.
*
* @return string
* The applied label. The entity is updated with this label.
*/
public function setSku();
/**
* Determines if the entity bundle has auto entity label enabled.
*
* @return bool
* True if the entity bundle has an automatic label.
*/
public function hasAutoSku();
/**
* Determines if the entity bundle has an optional automatic label.
*
* Optional means that if the label is empty, it will be automatically
* generated.
*
* @return bool
* True if the entity bundle has an optional automatic label.
*/
public function hasOptionalAutoSku();
/**
* Returns whether the automatic label has to be set.
*
* @return bool
* Returns true if the label should be automatically generated.
*/
public function autoSkuNeeded();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CommerceAutoSkuManagerInterface:: |
public | function | Returns whether the automatic label has to be set. | 1 |
CommerceAutoSkuManagerInterface:: |
public | function | Determines if the entity bundle has auto entity label enabled. | 1 |
CommerceAutoSkuManagerInterface:: |
public | function | Determines if the entity bundle has an optional automatic label. | 1 |
CommerceAutoSkuManagerInterface:: |
public | function | Sets the automatically generated entity label. | 1 |