You are here

public function Negotiator::setEntityStorage in Consumers 8

Sets the storage from the entity type manager.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Throws

\Drupal\Component\Plugin\Exception\PluginException

File

src/Negotiator.php, line 139

Class

Negotiator
Extracts the consumer information from the given context.

Namespace

Drupal\consumers

Code

public function setEntityStorage(EntityTypeManagerInterface $entity_type_manager) {
  $this->storage = $entity_type_manager
    ->getStorage('consumer');
}