public function BaseMapping::__construct in Flags 8
Creates new instance of BaseMapping class.
Parameters
ConfigFactoryInterface $config:
File
- src/
Mapping/ BaseMapping.php, line 38
Class
- BaseMapping
- Provides generic mapping service to map values to flags using config entities.
Namespace
Drupal\flags\MappingCode
public function __construct(ConfigFactoryInterface $config) {
$ids = $config
->listAll($this
->getConfigKey());
$this->config = $config
->loadMultiple($ids);
}