entity_generic-8.x-3.x-dev/src/Generic/EntityCreatedInterface.php

src/Generic/EntityCreatedInterface.php
<?php

namespace Drupal\entity_generic\Generic;

/**
 * Defines an interface for created field.
 */
interface EntityCreatedInterface {

  /**
   * Gets the entity creation timestamp.
   *
   * @return int
   *   Creation timestamp of the entity.
   */
  public function getCreatedTime();

  /**
   * Sets the entity creation timestamp.
   *
   * @param int $timestamp
   *   The entity creation timestamp.
   *
   * @return \Drupal\entity_generic\Entity\BasicInterface
   *   The called entity.
   */
  public function setCreatedTime($timestamp);

}

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

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