You are here

PrintfriendlyBlock.php in PrintFriendly & PDF 8.2

File

src/Plugin/Block/PrintfriendlyBlock.php
View source
<?php

/**
 * @file
 */
namespace Drupal\printfriendly\Plugin\Block;

use Drupal\Core\Block\BlockBase;

/**
 * Creates a 'Printfriendly' Block
 * @Block(
 * id = "block_printfriendly",
 * admin_label = @Translation("printfriendly"),
 * )
 */
class PrintfriendlyBlock extends BlockBase {

  /**
   * {@inheritdoc}
   */
  public function build() {
    return printfriendly_create_button();
  }

}

Classes

Namesort descending Description
PrintfriendlyBlock Creates a 'Printfriendly' Block