Mercurial > hg > isophonics-drupal-site
comparison core/modules/block_content/src/BlockContentInterface.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
1 <?php | 1 <?php |
2 | 2 |
3 namespace Drupal\block_content; | 3 namespace Drupal\block_content; |
4 | 4 |
5 use Drupal\block_content\Access\RefinableDependentAccessInterface; | |
5 use Drupal\Core\Entity\ContentEntityInterface; | 6 use Drupal\Core\Entity\ContentEntityInterface; |
6 use Drupal\Core\Entity\EntityChangedInterface; | 7 use Drupal\Core\Entity\EntityChangedInterface; |
7 use Drupal\Core\Entity\EntityPublishedInterface; | 8 use Drupal\Core\Entity\EntityPublishedInterface; |
8 use Drupal\Core\Entity\RevisionLogInterface; | 9 use Drupal\Core\Entity\RevisionLogInterface; |
9 | 10 |
10 /** | 11 /** |
11 * Provides an interface defining a custom block entity. | 12 * Provides an interface defining a custom block entity. |
12 */ | 13 */ |
13 interface BlockContentInterface extends ContentEntityInterface, EntityChangedInterface, RevisionLogInterface, EntityPublishedInterface { | 14 interface BlockContentInterface extends ContentEntityInterface, EntityChangedInterface, RevisionLogInterface, EntityPublishedInterface, RefinableDependentAccessInterface { |
14 | 15 |
15 /** | 16 /** |
16 * Returns the block revision log message. | 17 * Returns the block revision log message. |
17 * | 18 * |
18 * @return string | 19 * @return string |
47 * \Drupal\Core\Entity\RevisionLogInterface::setRevisionLogMessage() instead. | 48 * \Drupal\Core\Entity\RevisionLogInterface::setRevisionLogMessage() instead. |
48 */ | 49 */ |
49 public function setRevisionLog($revision_log); | 50 public function setRevisionLog($revision_log); |
50 | 51 |
51 /** | 52 /** |
53 * Determines if the block is reusable or not. | |
54 * | |
55 * @return bool | |
56 * Returns TRUE if reusable and FALSE otherwise. | |
57 */ | |
58 public function isReusable(); | |
59 | |
60 /** | |
61 * Sets the block to be reusable. | |
62 * | |
63 * @return $this | |
64 */ | |
65 public function setReusable(); | |
66 | |
67 /** | |
68 * Sets the block to be non-reusable. | |
69 * | |
70 * @return $this | |
71 */ | |
72 public function setNonReusable(); | |
73 | |
74 /** | |
52 * Sets the theme value. | 75 * Sets the theme value. |
53 * | 76 * |
54 * When creating a new block content block from the block library, the user is | 77 * When creating a new block content block from the block library, the user is |
55 * redirected to the configure form for that block in the given theme. The | 78 * redirected to the configure form for that block in the given theme. The |
56 * theme is stored against the block when the block content add form is shown. | 79 * theme is stored against the block when the block content add form is shown. |