Skip to content
SyndicateBlock.php 866 B
Newer Older
 * Contains \Drupal\node\Plugin\Block\SyndicateBlock.
namespace Drupal\node\Plugin\Block;
use Drupal\Core\Session\AccountInterface;

/**
 * Provides a 'Syndicate' block that links to the site's RSS feed.
 *
 *   admin_label = @Translation("Syndicate"),
 *   category = @Translation("System")
  public function defaultConfiguration() {
  public function access(AccountInterface $account) {
    return $account->hasPermission('access content');
    return array(
      '#theme' => 'feed_icon',
      '#url' => 'rss.xml',
    );
  }

}