Implements \Drupal\views\Plugin\views\area\AreaPluginBase::render().
Overrides AreaPluginBase::render
public function render($empty = FALSE) {
if (!$empty || !empty($this->options['empty'])) {
$element = array(
'#theme' => 'links',
'#links' => array(
array(
'href' => 'node/add',
'title' => t('Add new content'),
),
),
'#access' => _node_add_access(),
);
return $element;
}
return array();
}