interface UpdateInterface in Express 8
Defines the interface for an object oriented preprocess plugin.
Hierarchy
- interface \Drupal\bootstrap\Plugin\Update\UpdateInterface
Expanded class hierarchy of UpdateInterface
All classes that implement UpdateInterface
File
- themes/contrib/ bootstrap/ src/ Plugin/ Update/ UpdateInterface.php, line 16 
- Contains \Drupal\bootstrap\Plugin\Update\UpdateInterface.
Namespace
Drupal\bootstrap\Plugin\UpdateView source
interface UpdateInterface {
  /**
   * Retrieves the update description, if any.
   *
   * @return string
   *   The update description.
   */
  public function getDescription();
  /**
   * Retrieves the human-readable label for the update.
   *
   * @return string
   *   The update label.
   */
  public function getLabel();
  /**
   * Retrieves the update schema.
   *
   * @return int
   */
  public function getProvider();
  /**
   * Retrieves the update schema.
   *
   * @return int
   */
  public function getSchema();
  /**
   * Retrieves the update severity level.
   *
   * @return string
   *   The update severity level.
   */
  public function getSeverity();
  /**
   * Retrieves the theme that provided the update.
   *
   * Used to determine whether or not the update should apply only to itself
   * (the theme that implemented the plugin) and none of its sub-themes.
   *
   * @return \Drupal\bootstrap\Theme
   */
  public function getTheme();
  /**
   * Indicates whether or not the update is private.
   *
   * @return bool
   */
  public function isPrivate();
  /**
   * The batch process callback for the update.
   *
   * This is the bulk of the update plugin. Be careful to no fill it will a
   * lot of heavily intensive processing. If you need to do a lot of things,
   * split it up into multiple updates so the Batch API can handle it.
   *
   * You can throw an exception from this method in case your processing fails.
   * Its message will be conveyed to the user to indicate what went wrong. If
   * the update has failed, but do not wish to throw an exception, simply
   * return FALSE and a generic "Update failed" message will appear.
   *
   * @param \Drupal\bootstrap\Theme $theme
   *   The theme that the update is being applied to.
   * @param array $context
   *   The Batch API context array, passed by reference. Note: be very careful
   *   to not store any instances created from a theme. The Batch API stores
   *   this in the DB between each "request" and it may not be able to fully
   *   reconstitute the object upon un-serialization. If you need to pass a
   *   theme object between instances, you should instead use an identifier
   *   (string) that can be used to reconstitute the object when needed.
   *
   * @return bool
   *   FALSE if the update failed, otherwise any other return will be
   *   interpreted as TRUE.
   */
  public function process(Theme $theme, array &$context);
}Members
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| UpdateInterface:: | public | function | Retrieves the update description, if any. | 1 | 
| UpdateInterface:: | public | function | Retrieves the human-readable label for the update. | 1 | 
| UpdateInterface:: | public | function | Retrieves the update schema. | 1 | 
| UpdateInterface:: | public | function | Retrieves the update schema. | 1 | 
| UpdateInterface:: | public | function | Retrieves the update severity level. | 1 | 
| UpdateInterface:: | public | function | Retrieves the theme that provided the update. | 1 | 
| UpdateInterface:: | public | function | Indicates whether or not the update is private. | 1 | 
| UpdateInterface:: | public | function | The batch process callback for the update. | 1 | 
