annotate core/modules/block_content/src/BlockContentInterface.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children 129ea1e6d783
rev   line source
Chris@0 1 <?php
Chris@0 2
Chris@0 3 namespace Drupal\block_content;
Chris@0 4
Chris@0 5 use Drupal\Core\Entity\ContentEntityInterface;
Chris@0 6 use Drupal\Core\Entity\EntityChangedInterface;
Chris@14 7 use Drupal\Core\Entity\EntityPublishedInterface;
Chris@0 8 use Drupal\Core\Entity\RevisionLogInterface;
Chris@0 9
Chris@0 10 /**
Chris@0 11 * Provides an interface defining a custom block entity.
Chris@0 12 */
Chris@14 13 interface BlockContentInterface extends ContentEntityInterface, EntityChangedInterface, RevisionLogInterface, EntityPublishedInterface {
Chris@0 14
Chris@0 15 /**
Chris@0 16 * Returns the block revision log message.
Chris@0 17 *
Chris@0 18 * @return string
Chris@0 19 * The revision log message.
Chris@0 20 *
Chris@0 21 * @deprecated in Drupal 8.2.0, will be removed before Drupal 9.0.0. Use
Chris@0 22 * \Drupal\Core\Entity\RevisionLogInterface::getRevisionLogMessage() instead.
Chris@0 23 */
Chris@0 24 public function getRevisionLog();
Chris@0 25
Chris@0 26 /**
Chris@0 27 * Sets the block description.
Chris@0 28 *
Chris@0 29 * @param string $info
Chris@0 30 * The block description.
Chris@0 31 *
Chris@0 32 * @return \Drupal\block_content\BlockContentInterface
Chris@0 33 * The class instance that this method is called on.
Chris@0 34 */
Chris@0 35 public function setInfo($info);
Chris@0 36
Chris@0 37 /**
Chris@0 38 * Sets the block revision log message.
Chris@0 39 *
Chris@0 40 * @param string $revision_log
Chris@0 41 * The revision log message.
Chris@0 42 *
Chris@0 43 * @return \Drupal\block_content\BlockContentInterface
Chris@0 44 * The class instance that this method is called on.
Chris@0 45 *
Chris@0 46 * @deprecated in Drupal 8.2.0, will be removed before Drupal 9.0.0. Use
Chris@0 47 * \Drupal\Core\Entity\RevisionLogInterface::setRevisionLogMessage() instead.
Chris@0 48 */
Chris@0 49 public function setRevisionLog($revision_log);
Chris@0 50
Chris@0 51 /**
Chris@0 52 * Sets the theme value.
Chris@0 53 *
Chris@0 54 * When creating a new block content block from the block library, the user is
Chris@0 55 * redirected to the configure form for that block in the given theme. The
Chris@0 56 * theme is stored against the block when the block content add form is shown.
Chris@0 57 *
Chris@0 58 * @param string $theme
Chris@0 59 * The theme name.
Chris@0 60 *
Chris@0 61 * @return \Drupal\block_content\BlockContentInterface
Chris@0 62 * The class instance that this method is called on.
Chris@0 63 */
Chris@0 64 public function setTheme($theme);
Chris@0 65
Chris@0 66 /**
Chris@0 67 * Gets the theme value.
Chris@0 68 *
Chris@0 69 * When creating a new block content block from the block library, the user is
Chris@0 70 * redirected to the configure form for that block in the given theme. The
Chris@0 71 * theme is stored against the block when the block content add form is shown.
Chris@0 72 *
Chris@0 73 * @return string
Chris@0 74 * The theme name.
Chris@0 75 */
Chris@0 76 public function getTheme();
Chris@0 77
Chris@0 78 /**
Chris@0 79 * Gets the configured instances of this custom block.
Chris@0 80 *
Chris@0 81 * @return array
Chris@0 82 * Array of Drupal\block\Core\Plugin\Entity\Block entities.
Chris@0 83 */
Chris@0 84 public function getInstances();
Chris@0 85
Chris@0 86 }