public function ProfileAddLocalTask::__construct in Profile 2 8
Constructs a new ThemeLocalTask.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
File
- src/
Plugin/ Derivative/ ProfileAddLocalTask.php, line 52 - Contains \Drupal\profile\Plugin\Derivative\ProfileAddLocalTask.
Class
- ProfileAddLocalTask
- Provides dynamic routes to add profiles.
Namespace
Drupal\profile\Plugin\DerivativeCode
public function __construct($base_plugin_definition, ConfigFactoryInterface $config_factory, EntityManagerInterface $entity_manager) {
$this->config = $config_factory
->loadMultiple($config_factory
->listAll('profile.type'));
$this->entityManager = $entity_manager;
}