You are here

protected function IndexForm::getClusterStorage in Elasticsearch Connector 8.2

Same name and namespace in other branches
  1. 8.7 src/Form/IndexForm.php \Drupal\elasticsearch_connector\Form\IndexForm::getClusterStorage()
  2. 8 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()

Get the cluster storage controller.

Return value

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

File

src/Form/IndexForm.php, line 76
Contains \Drupal\elasticsearch_connector\Form\IndexForm.

Class

IndexForm
Form controller for node type forms.

Namespace

Drupal\elasticsearch_connector\Form

Code

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