BlockWithAlteredImage.php in Panopoly Magic 8.2
File
tests/modules/panopoly_magic_preview_test/src/Plugin/Block/BlockWithAlteredImage.phpView source
<?php
namespace Drupal\panopoly_magic_preview_test\Plugin\Block;
use Drupal\Core\Block\BlockBase;
/**
* A block that takes a setting that'll be displayed.
*
* @Block(
* id = "panopoly_magic_preview_test_altered_image",
* admin_label = @Translation("Block with (altered) preview image"),
* category = @Translation("Panopoly Magic Preview Test"),
* )
*/
class BlockWithAlteredImage extends BlockBase {
/**
* {@inheritDoc}
*/
public function build() {
return [
'#markup' => $this
->t("BlockWithAlteredImage: normal block content"),
];
}
}
Classes
Name | Description |
---|---|
BlockWithAlteredImage | A block that takes a setting that'll be displayed. |