Skip to content

Instantly share code, notes, and snippets.

@EclipseGc
Created August 10, 2012 22:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EclipseGc/3318619 to your computer and use it in GitHub Desktop.
Save EclipseGc/3318619 to your computer and use it in GitHub Desktop.
<?php
namespace Drupal\system\Plugin\block\block;
use Drupal\block\BlockBase;
use Drupal\Core\Annotation\Plugin;
use Drupal\Core\Annotation\Translation;
/**
* @Plugin(
* plugin_id = "system_powered_by_block",
* subject = @Translation("Powered by Drupal"),
* module = "system",
* settings = {
* "region" = "footer",
* "status" = TRUE,
* "cache" = DRUPAL_NO_CACHE
* }
* )
*/
class SystemPoweredByBlock extends BlockBase {
/**
* Implements BlockInterface::build().
*/
public function build() {
return array(
'#children' => theme('system_powered_by'),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment