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/modules/rest/src/Plugin/Deriver/EntityDeriver.php \Drupal\rest\Plugin\Deriver\EntityDeriver::__construct()
Constructs an EntityDerivative object.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
File
- core/
modules/ rest/ src/ Plugin/ Deriver/ EntityDeriver.php, line 41 - Contains \Drupal\rest\Plugin\Deriver\EntityDeriver.
Class
- EntityDeriver
- Provides a resource plugin definition for every entity type.
Namespace
Drupal\rest\Plugin\DeriverCode
public function __construct(EntityManagerInterface $entity_manager) {
$this->entityManager = $entity_manager;
}