Implements hook_element_info().
function contextual_element_info() {
$types['contextual_links_placeholder'] = array(
'#pre_render' => array(
'contextual_pre_render_placeholder',
),
'#id' => NULL,
);
$types['contextual_links'] = array(
'#pre_render' => array(
'contextual_pre_render_links',
),
'#theme' => 'links__contextual',
'#links' => array(),
'#attributes' => array(
'class' => array(
'contextual-links',
),
),
'#attached' => array(
'library' => array(
array(
'contextual',
'drupal.contextual-links',
),
),
),
);
return $types;
}