- Add a class under
plugin/Derivative
by extending\Drupal\Component\Plugin\Derivative\DeriverBase
- Add to
*.links.action.yml
- Example:
field_ui.field_storage_config_add:
class: \Drupal\Core\Menu\LocalActionDefault
deriver: \Drupal\field_ui\Plugin\Derivative\FieldUiLocalAction