You are here

function ds_ds_field_operations_alter in Display Suite 8.3

Same name and namespace in other branches
  1. 8.4 ds.module \ds_ds_field_operations_alter()
  2. 8.2 ds.module \ds_ds_field_operations_alter()

Implements hook_ds_field_operations_alter().

File

./ds.module, line 1147
Display Suite core functions.

Code

function ds_ds_field_operations_alter(&$operations, $field) {
  if ($field['type'] == 'block') {
    $operations['config'] = [
      'title' => t('Configure block'),
      'url' => new Url('ds.manage_block_field_config', [
        'field_key' => $field['id'],
      ]),
    ];
  }
}