public function ShortcutsBlock::build

Builds and returns the renderable array for this block plugin.

Return value

array A renderable array representing the content of the block.

Overrides BlockPluginInterface::build

See also

\Drupal\block\BlockRenderController

File

drupal/core/modules/shortcut/lib/Drupal/shortcut/Plugin/Block/ShortcutsBlock.php, line 28
Contains \Drupal\shortcut\Plugin\Block\ShortcutsBlock.

Class

ShortcutsBlock
Provides a 'Shortcut' block.

Namespace

Drupal\shortcut\Plugin\Block

Code

public function build() {
  return array(
    shortcut_renderable_links(shortcut_current_displayed_set()),
  );
}