You are here

protected function IndexForm::getClusterStorage in Elasticsearch Connector 8.7

Same name and namespace in other branches
  1. 8 src/Form/IndexForm.php \Drupal\elasticsearch_connector\Form\IndexForm::getClusterStorage()
  2. 8.2 src/Form/IndexForm.php \Drupal\elasticsearch_connector\Form\IndexForm::getClusterStorage()
  3. 8.5 src/Form/IndexForm.php \Drupal\elasticsearch_connector\Form\IndexForm::getClusterStorage()
  4. 8.6 src/Form/IndexForm.php \Drupal\elasticsearch_connector\Form\IndexForm::getClusterStorage()

Gets the cluster storage controller.

Return value

\Drupal\Core\Entity\EntityStorageInterface An instance of EntityStorageInterface.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

File

src/Form/IndexForm.php, line 90

Class

IndexForm
Form controller for node type forms.

Namespace

Drupal\elasticsearch_connector\Form

Code

protected function getClusterStorage() {
  return $this
    ->getEntityManager()
    ->getStorage('elasticsearch_cluster');
}