protected function FileMetadataPluginBase::getConfigObject in File metadata manager 8
Same name and namespace in other branches
- 8.2 src/Plugin/FileMetadata/FileMetadataPluginBase.php \Drupal\file_mdm\Plugin\FileMetadata\FileMetadataPluginBase::getConfigObject()
Gets the configuration object for this plugin.
Parameters
bool $editable: If TRUE returns the editable configuration object.
Return value
\Drupal\Core\Config\ImmutableConfig|\Drupal\Core\Config\Config The ImmutableConfig of the Config object for this plugin.
1 call to FileMetadataPluginBase::getConfigObject()
- FileMetadataPluginBase::submitConfigurationForm in src/
Plugin/ FileMetadata/ FileMetadataPluginBase.php - Form submission handler.
File
- src/
Plugin/ FileMetadata/ FileMetadataPluginBase.php, line 145
Class
- FileMetadataPluginBase
- Abstract implementation of a base File Metadata plugin.
Namespace
Drupal\file_mdm\Plugin\FileMetadataCode
protected function getConfigObject($editable = FALSE) {
$plugin_definition = $this
->getPluginDefinition();
$config_name = $plugin_definition['provider'] . '.file_metadata_plugin.' . $plugin_definition['id'];
return $editable ? $this->configFactory
->getEditable($config_name) : $this->configFactory
->get($config_name);
}