public function AutomatedCrop::__construct in Automated Crop 8
Constructs an AutomatedCrop object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
File
- modules/
automated_crop_crop_provider/ src/ EventSubscriber/ AutomatedCrop.php, line 31
Class
- AutomatedCrop
- A subscriber running automated crop after a crop is needed.
Namespace
Drupal\automated_crop_crop_provider\EventSubscriberCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->cropStorage = $entity_type_manager
->getStorage('crop');
}