You are here

UpdateInterface.php in Update helper 8

Same filename and directory in other branches
  1. 2.x modules/update_helper_checklist/src/Entity/UpdateInterface.php

File

modules/update_helper_checklist/src/Entity/UpdateInterface.php
View source
<?php

namespace Drupal\update_helper_checklist\Entity;

use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Entity\EntityChangedInterface;

/**
 * Interface for the Update entity.
 */
interface UpdateInterface extends ContentEntityInterface, EntityChangedInterface {

  /**
   * Returns if an update was successful during update hook.
   *
   * @return bool
   *   Update was successful or not.
   */
  public function wasSuccessfulByHook();

  /**
   * Set successful_by_hook field value.
   *
   * @param bool $success
   *   Update was successful or not.
   *
   * @return mixed
   *   This object.
   */
  public function setSuccessfulByHook($success);

}

Interfaces

Namesort descending Description
UpdateInterface Interface for the Update entity.