Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / block_content / src / BlockContentInterface.php
index 130cae1c3cfbd5b2d43ae96b93ea72b41eafafb9..bba6e4663d5bc9d29bbd898ec9fbfaeeba21d5e9 100644 (file)
@@ -2,14 +2,16 @@
 
 namespace Drupal\block_content;
 
+use Drupal\block_content\Access\RefinableDependentAccessInterface;
 use Drupal\Core\Entity\ContentEntityInterface;
 use Drupal\Core\Entity\EntityChangedInterface;
+use Drupal\Core\Entity\EntityPublishedInterface;
 use Drupal\Core\Entity\RevisionLogInterface;
 
 /**
  * Provides an interface defining a custom block entity.
  */
-interface BlockContentInterface extends ContentEntityInterface, EntityChangedInterface, RevisionLogInterface {
+interface BlockContentInterface extends ContentEntityInterface, EntityChangedInterface, RevisionLogInterface, EntityPublishedInterface, RefinableDependentAccessInterface {
 
   /**
    * Returns the block revision log message.
@@ -47,6 +49,28 @@ interface BlockContentInterface extends ContentEntityInterface, EntityChangedInt
    */
   public function setRevisionLog($revision_log);
 
+  /**
+   * Determines if the block is reusable or not.
+   *
+   * @return bool
+   *   Returns TRUE if reusable and FALSE otherwise.
+   */
+  public function isReusable();
+
+  /**
+   * Sets the block to be reusable.
+   *
+   * @return $this
+   */
+  public function setReusable();
+
+  /**
+   * Sets the block to be non-reusable.
+   *
+   * @return $this
+   */
+  public function setNonReusable();
+
   /**
    * Sets the theme value.
    *