function bynder_entity_extra_field_info in Bynder 8.2
Same name and namespace in other branches
- 8.3 bynder.module \bynder_entity_extra_field_info()
- 8 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 103 - Provides bynder integration.
Code
function bynder_entity_extra_field_info() {
$extra = [];
foreach (MediaType::loadMultiple() as $type) {
/** @var \Drupal\media\Entity\MediaType $type */
if ($type
->getSource() instanceof Bynder) {
$extra['media'][$type
->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;
}