X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fblock_content%2Fsrc%2FBlockContentInterface.php;fp=web%2Fcore%2Fmodules%2Fblock_content%2Fsrc%2FBlockContentInterface.php;h=bba6e4663d5bc9d29bbd898ec9fbfaeeba21d5e9;hp=75fdc5979b389de4281121192f486b225b1beba9;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/block_content/src/BlockContentInterface.php b/web/core/modules/block_content/src/BlockContentInterface.php index 75fdc5979..bba6e4663 100644 --- a/web/core/modules/block_content/src/BlockContentInterface.php +++ b/web/core/modules/block_content/src/BlockContentInterface.php @@ -2,6 +2,7 @@ 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; @@ -10,7 +11,7 @@ use Drupal\Core\Entity\RevisionLogInterface; /** * Provides an interface defining a custom block entity. */ -interface BlockContentInterface extends ContentEntityInterface, EntityChangedInterface, RevisionLogInterface, EntityPublishedInterface { +interface BlockContentInterface extends ContentEntityInterface, EntityChangedInterface, RevisionLogInterface, EntityPublishedInterface, RefinableDependentAccessInterface { /** * Returns the block revision log message. @@ -48,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. *