class InitialSettingsService in Media Parent Entity Link 8
Class InitialSettingsService.
Providing some initial settings for the module, to avoid hardcoding and in .module file and allow for easier extending to other formatters and sources
Hierarchy
- class \Drupal\media_parent_entity_link\InitialSettingsService
Expanded class hierarchy of InitialSettingsService
1 string reference to 'InitialSettingsService'
1 service uses InitialSettingsService
File
- src/
InitialSettingsService.php, line 11
Namespace
Drupal\media_parent_entity_linkView source
class InitialSettingsService {
/**
* @var array of field formatter plugin ids
*/
protected $formatters = [
'image',
'responsive_image',
];
/**
* @var array of media sources
*/
protected $mediasources = [
'image',
];
/**
* Constructs a new InitialSettingsService object.
*/
public function __construct() {
}
/**
* @return array
*/
public function getFormatters() {
return $this->formatters;
}
/**
* @return array
*/
public function getMediasources() {
return $this->mediasources;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InitialSettingsService:: |
protected | property | ||
InitialSettingsService:: |
protected | property | ||
InitialSettingsService:: |
public | function | ||
InitialSettingsService:: |
public | function | ||
InitialSettingsService:: |
public | function | Constructs a new InitialSettingsService object. |