Created
August 10, 2012 22:26
-
-
Save EclipseGc/3318619 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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