You are here

interface BootstrapLayoutsUpdateInterface in Bootstrap Layouts 8.4

Same name and namespace in other branches
  1. 8.5 src/Plugin/BootstrapLayouts/BootstrapLayoutsUpdateInterface.php \Drupal\bootstrap_layouts\Plugin\BootstrapLayouts\BootstrapLayoutsUpdateInterface

Hierarchy

Expanded class hierarchy of BootstrapLayoutsUpdateInterface

All classes that implement BootstrapLayoutsUpdateInterface

File

src/Plugin/BootstrapLayouts/BootstrapLayoutsUpdateInterface.php, line 12

Namespace

Drupal\bootstrap_layouts\Plugin\BootstrapLayouts
View source
interface BootstrapLayoutsUpdateInterface extends ContainerAwareInterface, ContainerFactoryPluginInterface, DerivativeInspectionInterface, PluginInspectionInterface {

  /**
   * Retrieves the path to plugin provider.
   *
   * @return string
   *   Path to the plugin provider.
   */
  public function getPath();

  /**
   * Provide an update.
   *
   * @param \Drupal\bootstrap_layouts\BootstrapLayoutsManager $manager
   *   The BootstrapLayoutsManager instance.
   * @param array $data
   *   Any static YAML data found for the update.
   * @param bool $display_messages
   *   Flag determining whether a message will be displayed indicating whether
   *   the layout was processed successfully or not.
   */
  public function update(BootstrapLayoutsManager $manager, array $data = [], $display_messages = TRUE);

  /**
   * Provide an update for an existing layout.
   *
   * Note: this process any existing layout and is not specific to just
   * "Bootstrap Layouts" based layouts. If implementing this update, you should
   * check the $layout->getId() before performing any tasks.
   *
   * @param \Drupal\bootstrap_layouts\BootstrapLayout $layout
   *   The existing BootstrapLayout instance that is being processed.
   * @param array $data
   *   Any static YAML data found for the update.
   * @param bool $display_messages
   *   Flag determining whether a message will be displayed indicating whether
   *   the layout was processed successfully or not.
   *
   * @see \Drupal\bootstrap_layouts\BootstrapLayoutsManager::update()
   */
  public function processExistingLayout(BootstrapLayout $layout, array $data = [], $display_messages = TRUE);

}

Members

Namesort descending Modifiers Type Description Overrides
BootstrapLayoutsUpdateInterface::getPath public function Retrieves the path to plugin provider. 1
BootstrapLayoutsUpdateInterface::processExistingLayout public function Provide an update for an existing layout. 1
BootstrapLayoutsUpdateInterface::update public function Provide an update. 1
ContainerFactoryPluginInterface::create public static function Creates an instance of the plugin. 112
DerivativeInspectionInterface::getBaseId public function Gets the base_plugin_id of the plugin instance. 1
DerivativeInspectionInterface::getDerivativeId public function Gets the derivative_id of the plugin instance. 1
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2