class CslMappingForm in Bibliography & Citation 2.0.x
Same name and namespace in other branches
- 8 modules/bibcite_entity/src/Form/CslMappingForm.php \Drupal\bibcite_entity\Form\CslMappingForm
Mapping form for CSL pseudo format.
Hierarchy
- class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, MessengerTrait, RedirectDestinationTrait, StringTranslationTrait
- class \Drupal\bibcite_entity\Form\MappingForm
- class \Drupal\bibcite_entity\Form\CslMappingForm
- class \Drupal\bibcite_entity\Form\MappingForm
Expanded class hierarchy of CslMappingForm
1 string reference to 'CslMappingForm'
- bibcite_entity.routing.yml in modules/
bibcite_entity/ bibcite_entity.routing.yml - modules/bibcite_entity/bibcite_entity.routing.yml
File
- modules/
bibcite_entity/ src/ Form/ CslMappingForm.php, line 11
Namespace
Drupal\bibcite_entity\FormView source
class CslMappingForm extends MappingForm {
/**
* {@inheritdoc}
*/
public function buildForm(array $form, FormStateInterface $form_state, $bibcite_format = NULL) {
$definition = [
'id' => 'csl',
'label' => $this
->t('CSL'),
'types' => [
'bill',
'book',
'chapter',
'broadcast',
'paper-conference',
'motion_picture',
'article-journal',
'legal_case',
'article-magazine',
'manuscript',
'map',
'article-newspaper',
'patent',
'personal_communication',
'report',
'legislation',
'thesis',
'webpage',
'article',
'dataset',
'entry',
'entry-dictionary',
'entry-encyclopedia',
'figure',
'graphic',
'interview',
'musical_score',
'pamphlet',
'post',
'post-weblog',
'review',
'review-book',
'song',
'speech',
'treaty',
],
'fields' => [
'title',
'type',
'keyword',
'author',
'abstract',
'issued',
'collection-title',
'container-title',
'volume',
'edition',
'version',
'chapter-number',
'section',
'issue',
'number-of-volumes',
'number',
'page',
'container',
'event-date',
'original-date',
'publisher',
'event-place',
'publisher-place',
'ISSN',
'ISBN',
'call-number',
'citation-label',
'URL',
'DOI',
'note',
'original-title',
'accessed',
'annote',
'archive',
'archive_location',
'archive-place',
'author',
'authority',
'citation-number',
'collection-editor',
'collection-number',
'composer',
'container-author',
'container-title',
'container-title-short',
'dimensions',
'director',
'editor',
'editorial-director',
'first-reference-note-number',
'genre',
'illustrator',
'interviewer',
'jurisdiction',
'locator',
'medium',
'number-of-pages',
'original-author',
'original-publisher',
'original-publisher-place',
'page-first',
'PMCID',
'PMID',
'recipient',
'references',
'reviewed-author',
'reviewed-title',
'scale',
'source',
'status',
'submitted',
'title-short',
'translator',
'year-suffix',
],
'provider' => 'bibcite_entity',
];
$bibcite_format = new BibciteFormat([], 'csl', $definition);
return parent::buildForm($form, $form_state, $bibcite_format);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CslMappingForm:: |
public | function |
Form constructor. Overrides MappingForm:: |
|
DependencySerializationTrait:: |
protected | property | ||
DependencySerializationTrait:: |
protected | property | ||
DependencySerializationTrait:: |
public | function | 2 | |
DependencySerializationTrait:: |
public | function | 2 | |
FormBase:: |
protected | property | The config factory. | 3 |
FormBase:: |
protected | property | The request stack. | 1 |
FormBase:: |
protected | property | The route match. | |
FormBase:: |
protected | function | Retrieves a configuration object. | |
FormBase:: |
protected | function | Gets the config factory for this form. | 3 |
FormBase:: |
private | function | Returns the service container. | |
FormBase:: |
protected | function | Gets the current user. | |
FormBase:: |
protected | function | Gets the request object. | |
FormBase:: |
protected | function | Gets the route match. | |
FormBase:: |
protected | function | Gets the logger for a specific channel. | |
FormBase:: |
protected | function | Returns a redirect response object for the specified route. | |
FormBase:: |
public | function | Resets the configuration factory. | |
FormBase:: |
public | function | Sets the config factory for this form. | |
FormBase:: |
public | function | Sets the request stack object to use. | |
FormBase:: |
public | function |
Form validation handler. Overrides FormInterface:: |
72 |
LoggerChannelTrait:: |
protected | property | The logger channel factory service. | |
LoggerChannelTrait:: |
protected | function | Gets the logger for a specific channel. | |
LoggerChannelTrait:: |
public | function | Injects the logger channel factory. | |
MappingForm:: |
protected | property | Configuration object. | |
MappingForm:: |
protected | property | Entity field manager service. | |
MappingForm:: |
protected | property | Entity type manager service. | |
MappingForm:: |
public static | function |
Instantiates a new instance of this class. Overrides FormBase:: |
|
MappingForm:: |
public static | function | Mapping page title callback. | |
MappingForm:: |
public | function |
Returns a unique string identifying the form. Overrides FormInterface:: |
|
MappingForm:: |
protected | function | Get array of Reference field options. | |
MappingForm:: |
protected | function | Get array of Reference types options. | |
MappingForm:: |
protected | function | Init mapping configuration object. | |
MappingForm:: |
public | function |
Form submission handler. Overrides FormInterface:: |
|
MappingForm:: |
public | function | Mapping form constructor. | |
MessengerTrait:: |
protected | property | The messenger. | 27 |
MessengerTrait:: |
public | function | Gets the messenger. | 27 |
MessengerTrait:: |
public | function | Sets the messenger. | |
RedirectDestinationTrait:: |
protected | property | The redirect destination service. | 1 |
RedirectDestinationTrait:: |
protected | function | Prepares a 'destination' URL query parameter for use with \Drupal\Core\Url. | |
RedirectDestinationTrait:: |
protected | function | Returns the redirect destination service. | |
RedirectDestinationTrait:: |
public | function | Sets the redirect destination service. | |
StringTranslationTrait:: |
protected | property | The string translation service. | 4 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |