public function Pinterest::providedFields in Media entity Pinterest 8
Gets list of fields provided by this plugin.
Return value
array Associative array with field names as keys and descriptions as values.
Overrides MediaTypeInterface::providedFields
File
- src/
Plugin/ MediaEntity/ Type/ Pinterest.php, line 101
Class
- Provides media type plugin for Pinterest.
Namespace
Drupal\media_entity_pinterest\Plugin\MediaEntity\TypeCode
public function providedFields() {
// TODO: Implement providedFields() method.
$fields = [
'id' => $this
->t('Pin ID'),
'board' => $this
->t('Board name'),
'section' => $this
->t('Section name'),
'user' => $this
->t('Pinterest user'),
];
// TODO: Implement providedFields() method when using the API.
return $fields;
}