You are here

public function EasySocialBlock::build in Easy Social 8.4

Same name and namespace in other branches
  1. 8.3 src/Plugin/Block/EasySocialBlock.php \Drupal\easy_social\Plugin\Block\EasySocialBlock::build()

Implements \Drupal\Block\BlockBase::blockBuild().

Overrides BlockPluginInterface::build

File

src/Plugin/Block/EasySocialBlock.php, line 27
Contains \Drupal\easy_social\Plugin\Block\EasySocialBlock.

Class

EasySocialBlock
Provides an Easy Social block.

Namespace

Drupal\easy_social\Plugin\Block

Code

public function build() {
  $content = array(
    '#theme' => 'easy_social',
  );
  return array(
    '#children' => \Drupal::service('renderer')
      ->render($content),
  );
}