Mercurial > hg > isophonics-drupal-site
view core/modules/block_content/src/BlockContentInterface.php @ 13:5fb285c0d0e3
Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've
been lucky to get away with this so far, as we don't support self-registration
which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5
was vulnerable to.
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:33:26 +0100 |
parents | 4c8ae668cc8c |
children | 1fec387a4317 |
line wrap: on
line source
<?php namespace Drupal\block_content; use Drupal\Core\Entity\ContentEntityInterface; use Drupal\Core\Entity\EntityChangedInterface; use Drupal\Core\Entity\RevisionLogInterface; /** * Provides an interface defining a custom block entity. */ interface BlockContentInterface extends ContentEntityInterface, EntityChangedInterface, RevisionLogInterface { /** * Returns the block revision log message. * * @return string * The revision log message. * * @deprecated in Drupal 8.2.0, will be removed before Drupal 9.0.0. Use * \Drupal\Core\Entity\RevisionLogInterface::getRevisionLogMessage() instead. */ public function getRevisionLog(); /** * Sets the block description. * * @param string $info * The block description. * * @return \Drupal\block_content\BlockContentInterface * The class instance that this method is called on. */ public function setInfo($info); /** * Sets the block revision log message. * * @param string $revision_log * The revision log message. * * @return \Drupal\block_content\BlockContentInterface * The class instance that this method is called on. * * @deprecated in Drupal 8.2.0, will be removed before Drupal 9.0.0. Use * \Drupal\Core\Entity\RevisionLogInterface::setRevisionLogMessage() instead. */ public function setRevisionLog($revision_log); /** * Sets the theme value. * * When creating a new block content block from the block library, the user is * redirected to the configure form for that block in the given theme. The * theme is stored against the block when the block content add form is shown. * * @param string $theme * The theme name. * * @return \Drupal\block_content\BlockContentInterface * The class instance that this method is called on. */ public function setTheme($theme); /** * Gets the theme value. * * When creating a new block content block from the block library, the user is * redirected to the configure form for that block in the given theme. The * theme is stored against the block when the block content add form is shown. * * @return string * The theme name. */ public function getTheme(); /** * Gets the configured instances of this custom block. * * @return array * Array of Drupal\block\Core\Plugin\Entity\Block entities. */ public function getInstances(); }