function bynder_entity_extra_field_info in Bynder 8
Same name and namespace in other branches
- 8.3 bynder.module \bynder_entity_extra_field_info()
- 8.2 bynder.module \bynder_entity_extra_field_info()
- 4.0.x bynder.module \bynder_entity_extra_field_info()
Implements hook_entity_extra_field_info().
File
- ./
bynder.module, line 100 - Provides bynder integration.
Code
function bynder_entity_extra_field_info() {
$extra = [];
foreach (MediaBundle::loadMultiple() as $bundle) {
/** @var \Drupal\media_entity\Entity\MediaBundle $bundle */
if ($bundle
->getType() instanceof Bynder) {
$extra['media'][$bundle
->id()]['form']['edit_on_bynder'] = [
'label' => t('Edit on Bynder'),
'description' => t('Displays message that advises to edit metadata on Bynder.'),
'weight' => -1,
'visible' => TRUE,
];
}
}
return $extra;
}