BlockStyleInterface.php in Block Style Plugins 8.2
Same filename and directory in other branches
Namespace
Drupal\block_style_plugins\PluginFile
src/Plugin/BlockStyleInterface.phpView source
<?php
namespace Drupal\block_style_plugins\Plugin;
use Drupal\Component\Plugin\ConfigurableInterface;
use Drupal\Component\Plugin\PluginInspectionInterface;
/**
* Defines an interface for Block style plugins.
*/
interface BlockStyleInterface extends PluginInspectionInterface, ConfigurableInterface {
/**
* Builds and returns the renderable array for this block style plugin.
*
* @param array $variables
* List of all variables sent to the theme system.
*
* @return array
* A renderable array representing the content of the block.
*/
public function build(array $variables);
/**
* Add theme suggestions for the block.
*
* @param array $suggestions
* List of theme suggestions.
* @param array $variables
* List of variables from a preprocess hook.
*
* @return array
* List of all theme suggestions.
*/
public function themeSuggestion(array $suggestions, array $variables);
}
Interfaces
Name | Description |
---|---|
BlockStyleInterface | Defines an interface for Block style plugins. |