geysir.api.php in Geysir 8
Hooks provided by the Geysir module.
File
geysir.api.phpView source
<?php
/**
* @file
* Hooks provided by the Geysir module.
*/
/**
* @addtogroup hooks
* @{
*/
/**
* Modify Geysir links.
*
* @param array $links
* Geysir links.
* @param 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.
*/
function hook_geysir_paragraph_links_alter(&$links, $context) {
// You can add custom actions here.
$links['up'] = [];
$links['down'] = [];
}
/**
* @} End of "addtogroup hooks".
*/
Functions
Name | Description |
---|---|
hook_geysir_paragraph_links_alter | Modify Geysir links. |