arch-8.x-1.x-dev/modules/product/src/Entity/ProductAvailabilityInterface.php

modules/product/src/Entity/ProductAvailabilityInterface.php
<?php

namespace Drupal\arch_product\Entity;

/**
 * Product availability interface.
 *
 * @package Drupal\arch_product\Entity
 */
interface ProductAvailabilityInterface {

  const STATUS_AVAILABLE = 'available';
  const STATUS_NOT_AVAILABLE = 'not_available';
  const STATUS_PREORDER = 'preorder';

  /**
   * Gets the name of the status.
   *
   * @return string
   *   The human-readable name of the availability.
   */
  public function getName();

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

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc