You are here

interface AutoEntityLabelManagerInterface in Automatic Entity Label 8

Same name and namespace in other branches
  1. 8.3 src/AutoEntityLabelManagerInterface.php \Drupal\auto_entitylabel\AutoEntityLabelManagerInterface
  2. 8.2 src/AutoEntityLabelManagerInterface.php \Drupal\auto_entitylabel\AutoEntityLabelManagerInterface

Provides an interface for AutoEntityLabelManager.

Hierarchy

Expanded class hierarchy of AutoEntityLabelManagerInterface

All classes that implement AutoEntityLabelManagerInterface

1 file declares its use of AutoEntityLabelManagerInterface
auto_entitylabel.module in ./auto_entitylabel.module
Allows hiding of entity label fields and automatic label creation.

File

src/AutoEntityLabelManagerInterface.php, line 8

Namespace

Drupal\auto_entitylabel
View source
interface AutoEntityLabelManagerInterface {

  /**
   * Sets the automatically generated entity label.
   *
   * @return string
   *   The applied label. The entity is updated with this label.
   */
  public function setLabel();

  /**
   * Determines if the entity bundle has auto entity label enabled.
   *
   * @return bool
   *   True if the entity bundle has an automatic label.
   */
  public function hasAutoLabel();

  /**
   * 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 hasOptionalAutoLabel();

  /**
   * Returns whether the automatic label has to be set.
   *
   * @return bool
   *   Returns true if the label should be automatically generated.
   */
  public function autoLabelNeeded();

}

Members

Namesort descending Modifiers Type Description Overrides
AutoEntityLabelManagerInterface::autoLabelNeeded public function Returns whether the automatic label has to be set. 1
AutoEntityLabelManagerInterface::hasAutoLabel public function Determines if the entity bundle has auto entity label enabled. 1
AutoEntityLabelManagerInterface::hasOptionalAutoLabel public function Determines if the entity bundle has an optional automatic label. 1
AutoEntityLabelManagerInterface::setLabel public function Sets the automatically generated entity label. 1