You are here

public function BlockStyleBase::setStyles in Block Style Plugins 8

Sets the style configuration for this plugin instance.

Deprecated

in 8.x-1.3 and will be removed before 8.x-2.x. Instead, you should just use setConfiguration().

File

src/Plugin/BlockStyleBase.php, line 312

Class

BlockStyleBase
Base class for Block style plugins.

Namespace

Drupal\block_style_plugins\Plugin

Code

public function setStyles(array $styles) {
  @trigger_error('::setStyles() is deprecated in 8.x-1.3 and will be removed before 8.x-2.x. Instead, you should just use setConfiguration(). See https://www.drupal.org/project/block_style_plugins/issues/3016288.', E_USER_DEPRECATED);
  $this
    ->setConfiguration($styles);
}