function hook_geysir_paragraph_links_alter in Geysir 8
Modify Geysir links.
Parameters
array $links: Geysir links.
array $context: Context of links.
- paragraph (\Drupal\paragraphs\ParagraphInterface) Displayed paragraph item.
- parent (\Drupal\Core\Entity\FieldableEntityInterface) Parent entity.
- delta (int) Delta of field.
- field_definition (\Drupal\Core\Field\FieldDefinition) The field definition.
1 invocation of hook_geysir_paragraph_links_alter()
- geysir_preprocess_field in ./
geysir.module - Implements hook_preprocess_HOOK().
File
- ./
geysir.api.php, line 28 - Hooks provided by the Geysir module.
Code
function hook_geysir_paragraph_links_alter(&$links, $context) {
// You can add custom actions here.
$links['up'] = [];
$links['down'] = [];
}