public function EntityDeriver::__construct in Zircon Profile 8
Same name in this branch
- 8 core/modules/rest/src/Plugin/Deriver/EntityDeriver.php \Drupal\rest\Plugin\Deriver\EntityDeriver::__construct()
- 8 core/lib/Drupal/Core/Entity/Plugin/DataType/Deriver/EntityDeriver.php \Drupal\Core\Entity\Plugin\DataType\Deriver\EntityDeriver::__construct()
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/Plugin/DataType/Deriver/EntityDeriver.php \Drupal\Core\Entity\Plugin\DataType\Deriver\EntityDeriver::__construct()
Constructs an EntityDeriver object.
Parameters
string $base_plugin_id: The base plugin ID.
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
File
- core/
lib/ Drupal/ Core/ Entity/ Plugin/ DataType/ Deriver/ EntityDeriver.php, line 48 - Contains \Drupal\Core\Entity\Plugin\DataType\Deriver\EntityDeriver.
Class
- EntityDeriver
- Provides data type plugins for each existing entity type and bundle.
Namespace
Drupal\Core\Entity\Plugin\DataType\DeriverCode
public function __construct($base_plugin_id, EntityManagerInterface $entity_manager) {
$this->basePluginId = $base_plugin_id;
$this->entityManager = $entity_manager;
}