You are here

interface LogCategoryInterface in Commerce Core 8.2

Defines the interface for log categories.

Hierarchy

Expanded class hierarchy of LogCategoryInterface

All classes that implement LogCategoryInterface

File

modules/log/src/Plugin/LogCategory/LogCategoryInterface.php, line 8

Namespace

Drupal\commerce_log\Plugin\LogCategory
View source
interface LogCategoryInterface {

  /**
   * Gets the category ID.
   *
   * @return string
   *   The category ID.
   */
  public function getId();

  /**
   * Gets the translated label.
   *
   * @return string
   *   The translated label.
   */
  public function getLabel();

  /**
   * Gets the entity type ID.
   *
   * For example, "node" if all log templates in the category are used on content.
   *
   * @return string
   *   The entity type id.
   */
  public function getEntityTypeId();

}

Members

Namesort descending Modifiers Type Description Overrides
LogCategoryInterface::getEntityTypeId public function Gets the entity type ID. 1
LogCategoryInterface::getId public function Gets the category ID. 1
LogCategoryInterface::getLabel public function Gets the translated label. 1